2016-08-23 8 views
0

CentOS 7에서 vundle vim으로 작업 중이며 현재 다른 PC에서 작동했던 플러그인을 설치할 수없는 문제가 있으며이 문제를 해결하는 방법을 기억하지 못하는 것 같습니다. 그래서 나는 .vim과 .vimrc를 제거한 다음 vundle git를 복제했다.Vundle 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 그것은하지 에디터 명령 오류를 반환합니다.

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 
+2

y의 내용을 포함해야합니다 우리 .vimrc. – pdoherty926

+0

죄송합니다. 나는 그 부분을 잊었다. 지금 수정 됨 – user3738622

답변

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 

는 또한의 .vimrc는 # sudo는 MV Test.vimrc의 .vimrc

내의 .vimrc 후 어쨌든에서 chmod를해야합니까

(먼저 rtp 및 번들 기능을 호출 한 다음 플러그인 변수를 설정하십시오.)