vim 两个插件快速键冲突

由本社区发起的开源项目
回复
yshihyu
帖子: 4
注册时间: 2007-08-26 16:59

vim 两个插件快速键冲突

#1

帖子 yshihyu » 2011-10-15 21:25

目前我安装了Snipmate , Pydiction 两个vim 插件快速键冲突

但是我在写c/cpp 它tab键自动补齐都跑到Pydiction插件变成,Snipmate就不work

那我看别人建议是把 Pydiction 放到 ftplugin/python/ 里面针对 python filetype 才启用。


我是用vundle 做管理vim插件

意思是在vimrc 加上判断vim开启的文件类型吗? 是像下面加上判断filetype?

if &filetype=="python"
filetype plugin on
let g:pydiction_location = '~/.vim/bundle/Pydiction/complete-dict'
endif

因为我其他插件也有用到ftplugin文件夹

所以vimrc在前面已经有先用过filetype plugin on

那要怎么去用什么filetype 才能选则启动指定的插件?

因为filetype plugin on好像是全部vim 插件都启动了, 怎么指定哪个插件去启动

谢谢
回复