Vim's split-screen function
Summing up, basically are ctrl+w then add a key letter, triggering a function.
(1) Open several files in the shell and split the screen:
vim-on file1 file2 ...
vim-on file1 file2 ...
Large O for Vertical division (vertical), small o for the horizontal split (the default horizontal), the following n means a few screens, in fact, I think not to write, by default, according to the number of files to be divided into several screens.
(2) Open a split screen in Vim:
To create a blank split screen:
: New
Open any file:
: Vsplit (: VSP) filename
: SP (split) filename
Open the current file:
Ctrl+w and S (split)
Ctrl+w and V (vsplit)
(3) Close a split screen:
: Only or Ctrl+w and O cancel other split screen, keep only the current split screen
Ctrl+w and C (Close)
Only one last split screen is available:
Ctrl+w and Q (quit)
(4) Move the cursor, that is, switch the split screen, you can also move the split screen, such as the left split screen to move to the right.
Ctrl+w and W (a variety of switching, only two sub-screen when it is more convenient)
Ctrl+w and H (h) left
Ctrl+w and J (j)
On Ctrl+w and K (k)
Ctrl+w and L (l) right
(5) The last step is to change the split-screen size operation.
Ctrl+w and < Left
Ctrl+w and > right
Ctrl+w and + On
Ctrl+w and-down
Ctrl+w and = Restore equal
Vim split screen shortcut keys