Vim file1 file2 can open more than one file at a time, switching between files can be done by: N
Vim-o file1 File2 Open multiple files at once and display them in the same interface (divided into several small windows)-o5 can control the start of cutting into a few small windows
After you open a file
Use: Split to cut this file into two windows to display
Use: Split filename to cut a window into a new window to display the filename
: Vsplit Vertical Cutting window, cut into left and right parts
To move between windows:
Ctrl+j ctrl+k
Adjust the position of the window
Ctrl+w J (must be capital J Shift+j)
Ctrl+w K
Ctrl+w H
Ctrl+w L
Ctrl+w-(CRTL+W and-separately pressed) The current window height is reduced by one row
Ctrl+w + (CRTL+W and + separately pressed) increases the current window height by one row
Ctrl+w = resizes the window to the same size
Vim Multi-window editing