The o
command open the file in the previous window.
I would from the NERDTree window:
- Hit
4
Ctrl ww
to visit window 4 - Hit Ctrl w
t
to go to NERDTree (assuming that it is on the left part) or alternatively assuming that you start at NERDTree hit Ctrl wp
to switch back to NERDTree. - Hit
o
to open the file
It would be possible to create a special mapping for that if needed.