I download Vim-plug but I am unable to use it.

I have downloaded NERDTree in ~/.vim/pack/vendor/start/nerdtree.

But when I give command :NERDTree in gVim editor it gives an error:

Not an editor command : NERDTree
  • 1
    What is your OS (Linux, Windows)? Feb 9, 2023 at 7:04
  • 3
    I've been compiling vim in my $HOME for more than to decades now. I've never needed admin privileges to do so. Feb 9, 2023 at 12:24

2 Answers 2


7th version does not support :h packages.

Therefore, you have to update your :h 'runtimepath' manually. Or simply merge the plugin files/dirs into your ".vim" directory subtree (which is kind of a mess, yeah).

  • With the pathogen plugin you can avoid the mess. I think it also backports the package feature
    – D. Ben Knoble
    Feb 9, 2023 at 12:45
  • @D.BenKnoble Basically, pathogen manages runtimepath. For anything, except of a whole pile of other plugins, one could do it manually.
    – Matt
    Feb 9, 2023 at 13:14

As @Matt suggested add to your .vimrc the following line:

set runtimepath^=~/vim/pack/vendor/start/nerdtree
  • 1
    No "pack" in 7.4.
    – romainl
    Feb 9, 2023 at 7:15
  • @Romain is always right :-) You need Vim 8 for my solution. Feb 9, 2023 at 7:51
  • If you have Vim 7.4 like @Romain said you have to select the solution of @Matt. Basically merge the NerdTree folder structure with your .vim folder structure (it is a mess) or play with the runtimepath Feb 9, 2023 at 9:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.