Im in windows and is new in using gvim. I am using the Nerdtree plugin for project navigations. Right now I open files from the nerd tree, vim will then load this opened files in the buffer. I find it easier to switch throug multiple files using the :b command, it gets more convenient after opening more files as more is loaded in the buffer.
But I think it will be more convenient if there is a way to load all files in a directory in the buffer at the same time instead of loading one by one when opening them.
You can specify multiple files on the command line (or right-click ‘Open with Single Vim’ in windows).
Equivalently, you can add or change the argument list after starting:
Replaces the argument list, opening all files as buffers, showing just one
Appends all java files in the tree below the current directory to the argument lst, opening them as buffers, keeping the active buffer in the current window unchanged
There are several other nice commands in relation to this:
(apply commands to all files in argument list vs. all open buffers)
(open all loaded buffers in separate windows, optionally in tabs)
OT hint: to clear out the buffer list
Set the current directory:
Set it to the dir of the currently open file:
This is very handy with tools like
:argadd *.cppor:!ctags -R .etc.