Vim. Editing multiple files
In previous issues, we have edited one file at a time. We did this because there were other points of interest at that time. However, Vim can handle more than one file at a time using several different techniques including buffers, viewports and tabs last one, since Vim 7. In this issue we take a look at these handy mechanisms that will speed up your work.
We can think of a buffer as a place inside Vim where a file is loaded. In the following example, I will use a couple of files:
$ cat file1 file2
This is file 1
This is ...