This article describes how to use the Vim split screen function. Split screen to start Vim using uppercase O parameters for vertical split screen. Vim-On file1 file2... use the lower-case o parameter to split the screen horizontally. Vim-on file1 file2... note: n is a number, which indicates several screens. Close the split screen to close the current window. Ctrl + W c close the current window. If only the last one is left, exit Vim. Ctrl + W q split up and down the currently opened files. Ctrl + W s split up and down, and open a new file. : Sp filename: splits open files left and right. Press Ctrl + W v to separate and open a new file. : Vsp filename: The cursor key in the move cursor Vi is h, j, k, l. to switch between screens, just press Ctrl + W to move the cursor to the screen on the right. Ctrl + W l move the cursor to the screen on the left. Ctrl + W h move the cursor to the screen above. Ctrl + W k move the cursor to the screen below. Ctrl + W j move the cursor to the next screen .. Ctrl + W w mobile split screen function still uses the Vim optical key, only in uppercase. Of course, if your split screen is messy and complicated, this function may have some very strange symptoms. Move to the right. Ctrl + w l move Ctrl + w h move Ctrl + w k move Ctrl + w j move down the screen size 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. Make all screens have the same height. Ctrl + W = increase the height. Ctrl + W + reduce the height. Ctrl + W-