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

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.