对某些文件类型禁用 Vim 插件

发布于 2024-09-11 22:05:39 字数 169 浏览 1 评论 0原文

我想在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鲸落 2024-09-18 22:05:39

启用文件类型插件后,尝试将其放入 .vimrc 中。

autocmd FileType tex :AcpDisable

这应该禁用 tex 文件的自动完成功能。

Try putting this in your .vimrc after you enabled filetype plugins.

autocmd FileType tex :AcpDisable

This should disable the auto completion for tex files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文