From the documention it would seem that it should be using your
~/Sites/project directory. (See
:NERDTree [<start-directory> | <bookmark>] *:NERDTree*
Opens a fresh NERD tree. The root of the tree depends on the argument
given. There are 3 cases: If no argument is given, the current directory
will be used. If a directory is given, that will be used. If a bookmark
name is given, the corresponding directory will be used. For example: >
:NERDTree foo (foo is the name of a bookmark)
:NERDTreeToggle [<start-directory> | <bookmark>] *:NERDTreeToggle*
If a NERD tree already exists for this tab, it is reopened and rendered
again. If no NERD tree exists for this tab then this command acts the
same as the |:NERDTree| command.
:NERDTreeToggle is loading the incorrect directory you need to try the following:
- Verify the shell's current working directory.
<c-z> to suspend Vim and then do
fg to bring back Vim.
- Make sure your current working directory is set correctly inside of Vim. Check via
- Do you have some plugin/customization that would change your current working directory?
- Error still occurring? Create a ticket in NERDTree's tracker. Make sure you use a minimal vimrc and no plugins other than NerdTree so that others can reproduce this bug.