[英]Is there a good way to disable all plugins in vim for a single file?
I am working on a huge file so vim is being pretty laggy. 我正在处理一个巨大的文件,所以vim非常迟钝。 I don't need all the plugins if it is going to be this slow.
如果它变得很慢,我不需要所有的插件。 Is there a good way to disable all plugins for just one file?
有没有一种方法可以禁用一个文件的所有插件?
Thanks 谢谢
Most plugins don't interfere with this; 大多数插件都不会干扰这个; they are only slow when they are invoked via their command or mapping.
通过命令或映射调用它们时速度很慢。 It's mostly syntax highlighting and some
:autocmds
. 它主要是语法高亮和一些
:autocmds
。 You can turn that off via 你可以通过关闭它
:syntax off
:set eventignore=all
Also, have a look at the LargeFile plugin for a "just works" solution; 另外,看看LargeFile插件的“正常工作”解决方案; it automatically detects such files and reconfigures Vim as best as possible.
它会自动检测此类文件并尽可能地重新配置Vim。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.