will do the same as :e, but also add it to the arglist. You can prefix with a number to insert it at a particular position, especially :0arge and :99arge for first and last respectively. It only adds one at a time; several can be added with :arga (including recursive wildcards such as /*.java)
:argd %
will delete the current file (which % expands to) from the arglist.
BTW: I dislike pressing : and <CR> so instead of :n, my .vimrc has:
:map <C-n> <Esc>:n<CR> " next file, with control-n
:map <C-p> <Esc>:N<CR> " prev file, with control-p
:arge
will do the same as :e, but also add it to the arglist. You can prefix with a number to insert it at a particular position, especially :0arge and :99arge for first and last respectively. It only adds one at a time; several can be added with :arga (including recursive wildcards such as /*.java)
:argd %
will delete the current file (which % expands to) from the arglist.
BTW: I dislike pressing : and <CR> so instead of :n, my .vimrc has:
:map <C-n> <Esc>:n<CR> " next file, with control-n :map <C-p> <Esc>:N<CR> " prev file, with control-p