Vim-snipmate doesn't expand snippet instead it removes the trigger

大城市里の小女人 提交于 2019-12-13 04:42:41

问题


Using Vim-snipmate(garbas vim-snipmate fork) on Windows 7 and Vim 7.3.107 I have the following problem. If I press tab in the indicated position (example in java script):

var foo = function() {
    var fum = 0;

    for<press-tab-here>
};

I end up with this:

var foo = function() {
    var fum = 0;


};

I have bound tab and Ctrl-j to snipmate and both generates the same problem. The snippets are found, I can list them and loading snippmate generates no errors.

I have the following scripts loaded:

mayansmoke
vim-colors-solarized
vim-pyte
mru
peaksea
set_tabline
vim-irblack-forked
vim-peepopen
yankring
vim-bundle-mako
vim-coffee-script
vim-less
vim-markdown
ack.vim
bufexplorer.zip
ctrlp.vim
nerdtree
open_file_under_cursor.vim
syntastic
tlib
vim-addon-mw-utils
vim-powerline
vim-snipmate
vim-snippets
vim-surround
web-indent

My vimrc setup is a nearly unchanged fork from https://github.com/amix/vimrc.git


回答1:


Try $ vim -u NONE. If the problem disappears consider populating your own vimrc yourself with what you need instead of blindly using someone else's.



来源:https://stackoverflow.com/questions/11985718/vim-snipmate-doesnt-expand-snippet-instead-it-removes-the-trigger

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!