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
Add this line to your .vimrc
let g:loaded_nerdtree_exec_menuitem = 1