2016-12-07 9 views
1

javascriopt 및 기타 플러그인을로드하는 중입니다. 사용하고 있습니다 Vundle 여기 입니다. 내 ~/.vimrc입니다. 집에서vim 플러그인을로드하지 않음 : mac

set nocompatible 
filetype on 

" set the runtime path to include Vundle and initialize 

" set t_Co=256 
syntax on 
set nu 
set background=light 
colorscheme solarized 
set laststatus=2 

set rtp+=~/.vim/bundle/Vundle.vim 
call vundle#rc() 
" Declare all plugins here 

" let Vundle manage Vundle, required 
Plugin 'VundleVim/Vundle.vim' 

" The following are examples of different formats supported. 
" Keep Plugin commands between vundle#begin/end. 
" plugin on GitHub repo 
Plugin 'tpope/vim-fugitive' 
" plugin from http://vim-scripts.org/vim/scripts.html 
Plugin 'L9' 
" Git plugin not hosted on GitHub 
" Plugin 'git://git.wincent.com/command-t.git’ 

Plugin 'jelera/vim-javascript-syntax' 
Plugin 'pangloss/vim-javascript' 
Plugin 'nathanaelkane/vim-indent-guides' 
Plugin 'Raimondi/delimitMate' 



" All of your Plugin must be added before the following line 
filetype plugin indent on " required 
" To ignore plugin indent changes, instead use: 
"filetype plugin on 
" 
" Brief help 
" :Bundle  - lists configured plugins 
" :Bundle - installs plugins; append `!` to update or just :Bundle 
" :Bundle foo - searches for foo; append `!` to refresh local cache 
" :Bundle  - confirms removal of unused plugins; append `!` to auto-approve removal 
" 
" see :h vundle for more details or wiki for FAQ 
" Put your non-Plugin stuff after this line 

디렉토리 구조를 (내가 Mac에서 gvim을 사용하고 있습니다) ~/.vim

enter image description here

내가 this link

이에서 제안 플러그인을 사용하고

은 JS 파일입니다 스크린 샷.

enter image description here

내가 부족 해요 위치에 대한 어떤 생각을 공유하시기 바랍니다.

+0

두 번째 줄에서'filetype on'을'filetype off'로 변경해 볼 수 있습니까? –

+0

이 경우에도 작동하지 않습니다. – PJ1405

+0

'call vundle # end()'다음에 filetype과 구문을 다시 설정합니다. 또한 나는 정확히 작동하지 않는 것을 이해할 수 없었다. 또한 참조 용으로 내'.vimrc'을 볼 수 있습니다 : https://github.com/Roshanjossey/dot-files/blob/master/.vimrc –

답변

1

번들이 올바르게 작동하지 않는 것 때문에 .vimrc에 구문 오류가 있기 때문입니다. vim의 이전 버전은 번들 플러그인을로드하기 전에

filetype off 

이 필요합니다. 자세한 내용은 question을 참조하십시오.

call vundle#end()이 누락 된 것 같습니다.

다음 보일러 플레이트를 따라 요구 사항에 따라 편집하십시오.

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

" Let vundle manage itself: 
Plugin 'VundleVim/Vundle.vim' 
" Syntax checking plugin 
Plugin 'scrooloose/syntastic' 

Plugin 'jelera/vim-javascript-syntax' 
Plugin 'pangloss/vim-javascript' 
Plugin 'nathanaelkane/vim-indent-guides' 
Plugin 'Raimondi/delimitMate' 


call vundle#end() 

filetype plugin indent on " Filetype auto-detection 
syntax on " Syntax highlighting