Depending on your window layout, if NERDTree is near the top-left corner, it may have a fixed window number (:echo winnr()
will tell you). You can then use [N]<C-w><C-w>
to go to window number [N]
.
If your layout is more dynamic, it might make sense to include the window number in your 'statusline'
:
:set statusline+=\ %{winnr()}