How do you disable a specific plugin in Vim?

Posted by Zxaos on Stack Overflow See other posts from Stack Overflow or by Zxaos
Published on 2010-05-22T17:05:22Z Indexed on 2010/05/22 17:10 UTC
Read the original article Hit count: 164

Filed under:
|

I have Vim set up to use the excellent NERDTree plugin. However, there are some environments where I do not want this plugin to be loaded.

In my .vimrc I have a sections that are only run when specific environment variables are true. In one of these sections I would like to disable the loading of NERDTree but all of the information I've come across states how to disable all plugins, not just one.

Could someone demonstrate how to disable the loading of one specific plugin in Vim?

© Stack Overflow or respective owner

Related posts about vim

Related posts about vimrc