vim - Directly switch to NERDTree window -
I have a NERDTree window and without 2 file view windows has been opened. In this case, the general way of switching to NERDTree (navigating with many Ctrl + w g / h / j / k) is not very easy as it is not universal for all open windows.
Is there a way to switch the NERDTree (or any other, maybe) window directly?
Depending on your window layout, if NERDTree is near the top-left corner, Can be a fixed window number ( If your layout is more dynamic, it may mean to include the window number in your : echo winnr () will tell you). Then you
[N] & lt; C-w & gt; & Lt; C-w & gt; Use to go to the window number
[N] .
'statuslines' :
: set statuslines + = \% {Winnr ()}
Comments
Post a Comment