2017-04-20 84 views
0

也許這是一個愚蠢的問題,但我無法弄清楚。我已經安裝了UltiSnips插件[UltiSnips插件] [1]。我遵循了設置它的所有說明。我加入到這個我.vimrc文件,但它不工作:Vim UltiSnips for python not working

" Track the engine. 
Plugin 'SirVer/ultisnips' 

" Snippets are separated from the engine. Add this if you want them: 
Plugin 'honza/vim-snippets' 

" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. 
let g:UltiSnipsExpandTrigger="<tab>" 
let g:UltiSnipsJumpForwardTrigger="<c-b>" 
let g:UltiSnipsJumpBackwardTrigger="<c-z>" 

我檢查是不是在我的.vimrc文件的其他任何地方使用。當我pritn'cl',然後按Tab鍵沒有任何反應。不過,我期待它能夠爲python類提供插入片段。

這是我使用的插件列表:

ctrlp 
jedi-vim 
SumpylFold 
ultisnips 
vim-airline 
vim-airline-themes 
vim-fugitive 
Vundle 
indentpython 
nerdtree 
vim-nerdtree-tabs 
syntastic 
vim-flake8 

缺少什麼我在這裏?

回答

0

我在這裏得到了答案answer to my question。這是一些澄清:

我從UltiSnips let g:UltiSnipsSnippetDirectories=["UltiSnips"]的文檔中添加此行到.vimrc文件,它現在工作正常。不過,我的情況並不明顯。