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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -