Пакет Vim Bundle не устанавливается

Платформа — Mac OS — 10.8.5

Вот мой файл .vimrc, за которым следуют ошибки, которые я получаю. *Мой репозиторий git настроен правильно ----- * git config --global core.editor "vim" (это настройка в моем .bashrc) ** set -o vi (настройка в мой .bashrc)

.vimrc-файл

set nocompatible " be iMproved, required
filetype off " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" alternatively, pass a path where Vundle should install plugins
"let path = '~/some/path/here'
"call vundle#rc(path)

" let Vundle manage Vundle, required
Plugin 'gmarik/vundle'

" The following are examples of different formats supported.
" Keep Plugin commands between here and filetype plugin indent on.
" scripts on GitHub repos
Plugin 'tpope/vim-fugitive'
Plugin 'altercation/vim-colors-solarized'
Plugin 'ervandew/supertab'
Plugin 'klen/python-mode'
Bundle 'vim-ipython'
" Plugin 'ivanov/vim-ipython'
" scripts from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" scripts not on GitHub
" Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" Plugin 'file:///home/gmarik/path/to/plugin'
" ...

Bundle 'flazz/vim-colorschemes'

filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - list configured plugins
" :PluginInstall(!) - install (update) plugins
" :PluginSearch(!) foo - search (or refresh cache first) for foo
" :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Plugin commands are not allowed.
" Put your stuff after this line
"
" Size of a hard tabstop
set tabstop=8 expandtab shiftwidth=4 softtabstop=4

set foldmethod=indent
set foldnestmax=2
set foldlevel=99

" I prefer to fold code with spacebar
nnoremap za
vnoremap zf

set background=dark
colorscheme solarized

" Have supertab use usercompletion by default, for tke sake of ipython
let g:SuperTabDefaultCompletionType = "context"
i

Ошибки, которые я получаю:


492: Not an editor command: ^M
line 6:
E117: Unknown function: vundle#rc
line 10:
E492: Not an editor command: ^M
line 12:
E492: Not an editor command: Plugin 'gmarik/vundle'^M
line 13:
E492: Not an editor command: ^M
line 17:
E492: Not an editor command: Plugin 'tpope/vim-fugitive'^M
line 18:
E492: Not an editor command: Plugin 'altercation/vim-colors-solarized'^M
line 19:
E492: Not an editor command: Plugin 'ervandew/supertab'^M
line 20:
E492: Not an editor command: Plugin 'klen/python-mode'^M
line 21:
E492: Not an editor command: Bundle 'vim-ipython'^M
line 30:
E492: Not an editor command: ^M
line 31:
E492: Not an editor command: Bundle 'flazz/vim-colorschemes'^M
line 32:
E492: Not an editor command: ^M
line 48:
E474: Invalid argument: softtabstop=4^M
line 49:
E492: Not an editor command: ^M
line 50:
E474: Invalid argument: foldmethod=indent^M
line 51:
E474: Invalid argument: foldnestmax=2^M
line 52:
E474: Invalid argument: foldlevel=99^M
line 53:
E492: Not an editor command: ^M
line 57:
E492: Not an editor command: ^M
line 58:
E474: Invalid argument: background=dark^M
line 59:
E185: Cannot find color scheme solarized^M
line 60:
E492: Not an editor command: ^M
line 62:
E15: Invalid expression: "context"^M

person user3524121    schedule 11.04.2014    source источник


Ответы (4)


Плагин gmarik/vundle

должно быть

Плагин gmarik/Vundle.vim

--

Также обратите внимание, что в vundle были внесены некоторые изменения, например, «Bundle» должен быть «Plugin», а вместо

вызов vundle#rc()

теперь это

вызов vundle#begin()

person redsphinx    schedule 31.07.2014

Ваши окончания строк неверны - ваш .vimrc имеет окончания строк Windows, используйте что-то вроде dos2unix, чтобы исправить это.

person Oliver Matthews    schedule 11.04.2014

Убедитесь, что вы клонируете Vundle в каталог .vim/bundle:

 $ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle 
person Bun S.    schedule 11.04.2014

Я думаю, что это должно быть проблема vundle, возможно, у вас установлено много vundle в "/bundle"

каталог, удалите их и попробуйте:

sudo git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
person Colin Lee    schedule 09.10.2014