Show all files in buffer
When you open multiple files at once as so,
$ vi file1.txt file2.txt file3.txt
Once vi opens file1.txt will be in your window. To switch to file2.txt just issue,
:b2
And to view file3.txt issue,
:b3
If you want to open every text file in a directory, you could do,
$ vi `find . -name '*.txt'`
and that would open every file ending in .txt, but you wouldn't know what order and what buffer they're in.
To see all buffers, issue,
:buffers
Note: There may be a limit to the number of files in a buffer, but I'm not sure.
References
- http://vim.wikia.com/wiki/Easier_buffer_switching » (They create an alias
bufferforbuffers) - http://sparky.rice.edu/vi.html »
[Click to add or edit comments])
Please prepend comments below including a date