nsb*_*sbm 3 vim code-snippets snipmate
我的问题是不言自明的,我如何禁用vim snipmate to perl文件?我发现自己很沮丧,因为它坚持我的omni-completion和neocomplcache.我只是在html文件中使用snipMate.
同样的问题可以问:如何只为一种类型的文件(html)启用snipmate?
您可以将snipMate.vim
文件从$VIM/plugin
另一个未自动加载的目录移动到,例如$VIM/extra
.
然后在.vimrc中,添加一行以仅使用snipmate for HTML:
autocmd FileType html,xhtml source $VIM/extra/snipMate.vim
Run Code Online (Sandbox Code Playgroud)
另一个更丑陋的方法是简单地删除或重命名所有片段文件,$VIM/snippets
除了html.snippets
您想要保留的片段或子集.如果您只想删除一些(例如仅禁用perl)而不是禁用除一种类型之外的所有类型,这将更有效.