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 (: echo winnr () will tell you). Then you [N] & lt; C-w & gt; & Lt; C-w & gt; Use to go to the window number [N] .

If your layout is more dynamic, it may mean to include the window number in your 'statuslines' :

 : set statuslines + = \% {Winnr ()}    

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -