What vi are you using? If you are using real vi (the one available
here), the only way to do it is manually with the n command. I.e.,
Code:
:args
file1 file2 [file3] file4 file5 file6 file7
:n file1 file2 file4 file5 file6 file7
:args
[file1] file2 file4 file5 file6 file7
If you are using vim (available
here), you can use the command argd or bd (depending on whether you are used to cycling with n or bn). In vim, using bn/bp with bd is more natural (since you can sometimes manipulate the argument list and be in a state editing a file not in the list).
For argd:
Code:
:args
file1 file2 [file3] file4 file5 file6 file7
:argd %
:args
file1 file2 [file4] file5 file6 file7
For bd:
Code:
:ls
1 "file1" line 1
2 # "file2" line 1
3 %a "file3" line 1
4 "file4" line 1
5 "file5" line 1
6 "file6" line 1
7 "file7" line 1
:bd
:ls
1 "file1" line 1
2 %a "file2" line 1
4 "file4" line 1
5 "file5" line 1
6 "file6" line 1
7 "file7" line 1