Tags: technology PNG uses ash between commands to synchronize a useMulti-file editing
Many times, we need to copy the contents of a file into the B file. If we use two vim windows to edit two files, the pasted content cannot cross the window.
Enter the following command to open multiple files in one window at the same time
vim file1, file2, file3
Use the command:
vi A.txt B.txt
In command mode input: Files to view the Open file list:
Command mode input:
Described above is a window to open one or more files, Vim also provides multiple windows to open one or more files.
Sometimes, when a file is particularly large, such as 1000 rows, when looking at the data in the back, we need to compare with the previous data, when the multi-window is very useful.
Effects such as:
: Set mouse=a makes the mouse active in Vim, you can use the mouse to move the cursor to drag the Vim window.
VIM Multi-file Multi-window function