对某些文件类型禁用 Vim 插件
我想在 Vim 中禁用某些文件类型的插件。我是 Vim 新手,所以慢慢来 :)
我有 autocomplpop 插件,我真的很喜欢它。但是,如果我正在编辑 LaTeX 文件,它会显示我已经使用过的每个英语单词的补全。这很分散注意力!我想对 .tex 文件禁用它,但我不知道该怎么做。
谢谢你!
I'd like to disable a plugin for certain filetypes in Vim. I'm a Vim newbie, so take it slow with me :)
I have the autocomplpop plugin, and I really like it. However, if I'm editing a LaTeX file, it shows completions for every single English language word I've already used. It's distracting! I'd like to disable it for .tex files, but I have no idea how to do so.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
启用文件类型插件后,尝试将其放入 .vimrc 中。
这应该禁用 tex 文件的自动完成功能。
Try putting this in your .vimrc after you enabled filetype plugins.
This should disable the auto completion for tex files.