Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing NERDTree on Windows

Tags:

I'm trying to install NERDTree (the Vim plugin) on Windows 7. I created a .vim directory on my user folder (C:/Users/Username) and extracted the plugin there. I've run :helptags ~.vim\doc and :helptags [full-path]. Closed and reopened Vim.

But when I try:

:NERDTree

the editor says:

E492: Not an editor command: NERDTree

How should I do it?

like image 324
Vitor Py Avatar asked Dec 07 '10 15:12

Vitor Py


People also ask

How do you add NERDTree?

Press m to bring up the NERDTree Filesystem Menu. This menu allows you to create, rename, and delete files and directories. Type a to add a child node and then simply enter the filename. You're done!

How do I switch to NERDTree?

Toggle the NERDtree window open and closed with <SHIFT>F8 key. Or use the \nt key mapping to open the file explorer with the cursor focus set to the file in your current vim buffer. So you probably just learned the most important part of this post. Open NERDtree with <SHIFT>F8 or :NERDTree command.

How do you switch between tabs in NERDTree?

Ctrl + → arrow will switch to tab that is on the right of current tab.


2 Answers

Windows doesn't use the '.vim' style directories. Instead you should put addons in directory structure branching off a vimfiles directory at one of two places:

c:\users\username\vimfiles\

or

c:\program files (x86)\vim\vimfiles\

For a little more help you can do :h runtimepath, and you could even modify runtimepath to make it work with your .vim directory, but safest route is just to go with the default vimfiles name oon Windows.

like image 111
Herbert Sitz Avatar answered Sep 19 '22 22:09

Herbert Sitz


try extracting the file to vimfiles instead of .vim

like image 26
skeept Avatar answered Sep 21 '22 22:09

skeept