简体   繁体   中英

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. 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 . You can turn that off via

:syntax off
:set eventignore=all

Also, have a look at the LargeFile plugin for a "just works" solution; it automatically detects such files and reconfigures Vim as best as possible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM