vitiral
vitiral

Reputation: 9210

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

Upvotes: 3

Views: 3206

Answers (1)

Ingo Karkat
Ingo Karkat

Reputation: 172500

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.

Upvotes: 6

Related Questions