Tabbed interface
Apart from split windows, you also can have tabbed windows. In the escape mode, type tabnew
. You can open multiple tabs like this. To navigate between tabs, type tabn
. This will move to the next tab. To move to a tabbed window, type tabn2
to move the second tab and so on.
To close a tab, type tabc
, tabclose
, or just close
.
If you are in a terminal emulator (basically terminal in GUI) then you can try doing set mouse=a
. Once that's done, you can click inside the editor with your mouse. And this will also help you navigate between tabs by clicking, and also closing by clicking on the close button at the right side.
Align your code - Full file
Just type G=gg
in the escape mode.
Fold your code
Say you have a function that is completed. You want to minimise (or fold) that part of code so that you can free up some space and reduce clutter. Just select the code. Then, type fold
.
This will fold the code up. If you want to expand the code, just go there, and type zo
. To fold again, type zc
.