Vim with Multiple Files
Buffers
Open multiple file into buffers
$ vi a.txt b.txt c.txtAdd files to the buffers
:e <file_path>List all files of current buffers
:ls:ls
1 %a "a.txt" line 1
2 "b.txt" line 0
3 "c.txt" line 0Switch file using index
:b <index>
:b 2Switch file using file name
Switch prev/next buffer
Switch to last visited buffer
Using Tabs
Open multiple files into tabs
Add a new Tab
Switch to prev/next Tab
Split Screen
Split Horizontally (up and down)
Split Vertically (left and right)
Open files into horizontally splitted windows
Open files into vertically splitted windows
Move between splitted windows
Move to next splitted window
Reference
Last updated