tags:

views:

1154

answers:

3

When I've just opened some project in NERDTree and then want to modify any file I do the following:

  1. Choose needed file
  2. Open it in tab(t character, by default)

But how I can jump back to NERDTRee to open one more file it tab?

I've read NERDTree help file but still don't know how to do it?

Temporary solution I use now in my .vimrc file:

map <F10> :NERDTree /path/to/root/of/my/project

But it's not very useful to start navigation again and again from the root of directory.

Huge thanks in advance!

+11  A: 
ctrl-ww

This will move between open windows (so you could hop between the NERDTree window, the file you are editing and the help window, for example... just hold down "control" and press "w" twice).

gaoshan88
>>just hold down "control" and press "w" twice. Unfortunately, I don't see anything changed after this.. And there's nothing special im my vimrc for this shortcut. Do you have any ideas? Please help
Fedyashev Nikita
Do I have any ideas? Nope, not after getting a -1 on the voting.
gaoshan88
Ctrl-ww will move the cursor between the split windows of the active tab. In a brand-new tab, there are not splits and thus ctrl-ww will do nothing.
innaM
@gaoshan88: your guess as to who voted you down may be wrong.
innaM
As might your assumption of my guess, Manni.
gaoshan88
+1 It worked for me :)
AntonioCS
A: 

You can change the tabs by ctrl-pgup and ctrl-pgdown. On that tab you came from the NERDTree is still selected and you can open another tab.

Vereb
+1  A: 

If you use T instead of t there is no need to jump back because the new tab will be opened, but vim's focus will simply remain within NERDTree.

innaM
Thanks! NERDTree is awesome :)
Fedyashev Nikita