Multi-column window
You can divide the current window horizontally into two columns by using the following command
: New
Create a new column blank window
: Split
Displays the current file in two columns
Similarly, you can use the following command to split the current window vertically into two columns
: vnew
: Vsplit
Press the <ctrl+w> key first, then press the direction key J, K, L, H, you can switch to other columns; Use in the current column: Q command, you can exit the current column, or you can use other commands to make changes to the current column
If you want the current command to take effect in all columns, you can append all at the end of the command
:< Command >all
For example:
: Qall
If you want this command to be enforced, then! At the bottom of the command
:< Command >all!
For example:
: qall! Force exit All Bar window
Label page
Vim in the version after 7, began to support the function of the tab page
: Tabnew Create a new label
: Tabnext Go to next tab
: Tabprevious go to previous label
In most cases, you can switch with the mouse click tab.