The split command in the vim split window shows two different files, or two different parts of a file, or two files are compared side by side. All of this can be achieved through split windows. The simplest command to open a new window is as follows: www.2cto.com: split (horizontal split) |: vsplit (Vertical split) this command splits the screen into two windows and places the cursor in the window above. the CTRL-W w command can be used to jump between windows. If you go to the window above, it will jump to the window below. If you go to the window below, it will jump to the window above. (The CTRL-W can do the same function which is to prevent you from shrinking your hand late from pressing the CTRL key sometimes for the second time .) Close the window: close. Any command that exits the editing can close the window, such as ": quit" and "ZZ. However, "close" can prevent you from accidentally exiting Vim when there is a window left. (Important settings ~) Close the window with its ": only" command to close all Windows except the current window. If there is no disk in the window to be closed, Vim will display an error message and the window will not be closed. Www.2cto.com open the specified file (two. c) ": split two. c "create a file in the form of separation": new "jump between the window (how to say, now the mouse can be replaced, but to improve efficiency, it is recommended to look) since you can use the vertical and horizontal separation commands to open any number of windows, you can set the window layout as needed. Next, you can use the following command to jump between Windows: CTRL-W h jump to the Left window CTRL-W j jump to the following window CTRL-W k jump to the above window CTRL-W l jump to the right window CTRL-W t jump to the top window CTRL-W B Jump to the bottom window you may have note that the command like moving the cursor is used to jump to the window. If you like, use the direction keys. Move the window if you find that the file order is not what you expected when splitting multiple files. By changing the CTRL-W K as shown below, the current window will move above and extend to the width of the screen. CTRL-W H move the current window to the leftmost CTRL-W J Move the current window to the bottom CTRL-W L move the current window to the rightmost if careful observation will find that, or H-J-K-L four key bits. the uppercase state is used here. ######################################## ######################################## run www.2cto.com on all Windows: qall indicates "quit all" (exit all ). If no disk is saved in any window, Vim will not exit. At the same time, the cursor will automatically jump to that window. You can use the ": write" command to save the file or ": quit! "Discard modification.: Wall, which indicates "write all" (save all ). But in fact, it only saves modified files. Vim knows that it makes no sense to save a file that has not been modified. (Very interesting ~~) The vim-o one.txt two.txt three.txt command is used in the terminal, that is, to open three files at a time and display them in a split form.