1. Split screen to start Vim
1. Use uppercase o parameters for Vertical Split screen
Vim-on file1 file2...
2. Use lower-case o to split the screen horizontally
Vim-on file1 file2...
Note: N indicates a number, which indicates several screens.
2. Disable Split screen
1. Close the current window
CTRL + W C
2. Close the current window. If only the last one is left, the Vim
CTRL + w Q
3. Split screen
1. Split up and down the currently opened files
CTRL + W S
2. Split up and down and open a new file
: SP filename
3. Split the currently opened files left and right
CTRL + W v
4. Split the left and right sides and open a new file.
: VSP filename
4. move the cursor to hjkl. to switch between screens, just press Ctrl + W.
1. move the cursor to the right
CTRL + W L
2. move the cursor to the screen on the left
CTRL + W H
3. move the cursor to the screen above
CTRL + W K
4. move the cursor to the screen below
CTRL + w j
5. move the cursor to the next Screen
CTRL + W
5. Below are some operations to change the size, mainly the height. You can use Ctrl + W <or> for the width, but this may be supported by the latest version.
1. Make all the screens have the same height.
CTRL + W =
2. Increase the height.
CTRL + W +
3. Reduce the height.
CTRL + w-
4. Mobile split screen
6. This function still uses the vim optical key, which is only in uppercase. Of course, if your split screen is messy and complicated, this function may have some very strange symptoms.
1. Move to the right.
CTRL + W L
2. Move to the left
CTRL + W H
3. Move up
CTRL + W K
4. Move down
CTRL + w j
Note: you are welcome to leave a message to add