Vundle Vim не устанавливает плагины

Я работаю с vundle vim на Centos 7, и в настоящее время у меня возникают проблемы, когда я не могу установить плагины, которые работали на других компьютерах, и я не могу вспомнить, как решить эту проблему. Поэтому я удалил свои .vim и .vimrc, а затем re git клонировал vundle git.

Итак, когда я запускаю vim, я получаю:

Error detected while processing /home/abarkley/.vimrc:
line   24:
E117: Unknown function: vundle#begin
line   26:
E492: Not an editor command: Plugin 'VundleVim/Vundle.vim'
line   27:
E492: Not an editor command: Plugin 'ekalinin/Dockerfile.vim'
line   28:
E492: Not an editor command: Plugin 'pangloss/vim-javascript'
line   29:
E492: Not an editor command: Plugin 'elzr/vim-json'
line   30:
E492: Not an editor command: Plugin 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' }
line   31:
E492: Not an editor command: Plugin 'jparise/vim-graphql'
line   32:
E492: Not an editor command: Plugin 'IN3D/vim-raml'
line   34:
E492: Not an editor command: Plugin 'godlygeek/tabular'
line   35:
E492: Not an editor command: Plugin 'plasticboy/vim-markdown'
line   37:
E492: Not an editor command: Bundle 'scrooloose/syntastic'
line   39:
E117: Unknown function: vundle#end

Если я открою vundle и сделаю: PluginInstall, он вернет ошибку команды «Не редактор».

Также нужно ли .vimrc быть chmod в любом случае после # sudo mv Test.vimrc .vimrc

Мой .vimrc:

set nocompatible
filetype off

set tabstop=4
set softtabstop=0
set expandtab
set shiftwidth=4

let g:syntastic_mode_map = { 'mode': 'active',
                            \ 'active_filetypes': ['python', 'javascript'],
                            \ 'passive_filetypes': [] }

set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'elzr/vim-json'
Plugin 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' }
Plugin 'jparise/vim-graphql'
Plugin 'IN3D/vim-raml'

Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'

Bundle 'scrooloose/syntastic'

call vundle#end()
filetype plugin indent on
autocmd Filetype gitcommit setlocal spell textwidth=72

person user3738622    schedule 23.08.2016    source источник
comment
Вы должны включить содержимое вашего .vimrc.   -  person pdoherty926    schedule 23.08.2016
comment
Так жаль. Я забыл эту часть. Исправлено сейчас   -  person user3738622    schedule 23.08.2016


Ответы (1)


Попробуйте это так:

set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'elzr/vim-json'
Plugin 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' }
Plugin 'jparise/vim-graphql'
Plugin 'IN3D/vim-raml'

Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'

Bundle 'scrooloose/syntastic'

call vundle#end()
set tabstop=4
set softtabstop=0
set expandtab
set shiftwidth=4

let g:syntastic_mode_map = { 'mode': 'active',
                            \ 'active_filetypes': ['python', 'javascript'],
                            \ 'passive_filetypes': [] }

set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']


filetype plugin indent on
autocmd Filetype gitcommit setlocal spell textwidth=72

(Сначала вызовите rtp и функциональность пакета, а затем установите переменные для плагинов)

person Daniel Kravetz Malabud    schedule 23.08.2016