简体   繁体   English

Vim-snipmate不扩展代码段,而是删除触发器

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

Using Vim-snipmate(garbas vim-snipmate fork) on Windows 7 and Vim 7.3.107 I have the following problem. 在Windows 7和Vim 7.3.107上使用Vim-snipmate(garbas vim-snipmate fork),我遇到以下问题。 If I press tab in the indicated position (example in java script): 如果我在指定位置按Tab键(Java脚本示例):

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. 我已经将tab和Ctrl-j绑定在一起,并且都产生了相同的问题。 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 我的vimrc设置是来自https://github.com/amix/vimrc.git的几乎不变的分支

Try $ vim -u NONE . 尝试$ vim -u NONE If the problem disappears consider populating your own vimrc yourself with what you need instead of blindly using someone else's. 如果问题消失考虑需要什么,而不是盲目地使用别人的填充自己的vimrc自己。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM