Start vim open multiple files and split screen display: vim-onfile1file2o is lowercase letters, upper and lower points, n is the number of split screen, followed by the file to be opened vim-Onfile1file2O is uppercase letters, left and right points, n is the number of split screens, followed by the number of split screens of files to be opened in the opened vim file to split up and down the window where the cursor is located: spctrl + ws split the left and right sides of the window where the cursor is located: vspctrl
Start vim to open multiple files and display them on a split screen:
Vim-on file1 file2o is a lowercase letter, with upper and lower scores. n indicates the number of split screens. the subsequent file vim-On file1 file2O is a capital letter, with the left and right scores, n is the number of split screens, followed by files to be opened
Split the file on vim.
Split up and down the window where the cursor is located: spctrl + w s split the left and right sides of the window where the cursor is located: vspctrl + w v
Move between different windows
Move to the window on the left of the cursor ctrl + w hctrl + w move to the window above the cursor ctrl + w kctrl + w ← move to the window below the cursor ctrl + w jctrl + w ←
Close current window
ctrl + w cctrl + w q:q