1. Window segmentation
": Split": Split the cursor window into two windows to display, continuous execution will split out multiple windows
"Ctrl+w W": Jumps to the next window, loops the jump
"Ctrl+w direction (or h,j,k,l)": Jumps to the next window where the direction is drawn
": Close": Close the current window
": Only": Keep the current window only
": New filename": Create a file to split the window
": Nsplit": ' N ' indicates the number of rows displayed in the new window
": Vsplit": Split horizontally, the rest is the same
": vnew filename": Use horizontal split when creating a new file
"Ctrl+w +": Increase the number of rows displayed in the current window (ctrl+w Press ' + ' after you're done)
"Ctrl+w-": Reduce the number of rows displayed in the current window
"Ctrl+w H": Move the current window to the far left
"Ctrl+w J": Move the current window to the bottom
"Ctrl+w K": Move the current window to the top
"Ctrl+w L": Move the current window to the far right
2. Batch processing window
": Qall": Exit all Windows
": Wall": Save All windows
": Wqall": Save and exit all windows
": qall!": Force exit All windows
3. Open more than one window at a time
Command line execution vim-o test1.txt test2.txt test3.txt Open a window for each file
": All": Opens a window for each file in a file list, split horizontally
": Vertical All": ibid., Vertical split
4. tab page
": Tabedit newfile": Create a tab for NewFile and edit NewFile
"GT": Jump between tabs, loop jump
": tabonly": Keep only the current tab, close the Rest of the tab page
Linux applications: Vim Multi-window editing