Gvim Multi-window editing
: Split divides the current window into two halves, displaying the same buffer content (the same file).
: Vsplit splits the current window into the left and right halves, and they show the same buffer content (the same file).
: Split Otherfile splits the current window into two halves, showing the current file and the newly specified file.
: Vsplit otherfile splits the current window into the left and right halves, and they display the current file and the newly specified file.
Switch between windows
按住Ctrl + W,然后再加上h, j, k, l,分别表示向左、下、上、右移动窗口。按住Ctrl + W,然后再加上t, b, p,分别表示向最左上角、最右下角、前一个访问的窗口。按住Ctrl,然后再加上方向键,也可以移动窗口。
Create multiple labels
Tip: This feature is similar to the New tab page for Firefox or Chrome.
: tabnew finename Open a new tab and edit the new file. If no file is specified, only the new tab is opened and the buffer is attached.
: Tabclose Closes the current tab page.
: Tabonly closes all other tabs except for the current tab page.
Close window
: Close closes the current window.
GVIM Multi-window editing