Split screen start vim
Use the uppercase O parameter to split the screen vertically.
vim-on file1 file2 ...
Use the lowercase o parameter to split the screen horizontally.
vim-on file1 file2 ...
Note: N is a number that is divided into several screens.
Turn off split screen
Closes the current window.
Ctrl+w C
Closes the current window, leaving vim if only the last one is left.
CTRL+W Q
Split screen
Splits the currently open file up and down.
Ctrl+w s
Split up and down and open a new file.
: SP filename
Splits the currently open file left and right.
Ctrl+w V
Split left and right, and open a new file.
: VSP filename
Moving Light Mark
VI in the cursor key is H, J, K, L, to switch between the various screens, only need to first click Ctrl+w
Move the cursor to the right screen.
Ctrl+w L
Move the cursor to the left screen.
Ctrl+w h
Move the cursor over the top screen.
Ctrl+w K
Move the cursor to the bottom screen.
Ctrl+w J
Move the cursor to the next screen.
Ctrl+w W
Mobile split Screen
Move right.
Ctrl+w L
Move left
Ctrl+w H
Move Up
Ctrl+w K
Move Down
Ctrl+w J
Screen size
Let all the screens have the same height.
Ctrl+w =
Increase the height.
Ctrl+w +
Reduce height.
Ctrl+w-
Vim's split screen