Dup Ver Goto 📝

argdo in Vim

PT2/editor/vim/tips vim args does not exist
To
18 lines, 79 words, 398 chars Page 'ArgDo_01' does not exist.

Load files with

:args *.txt

Then do things via

:bufdo 1d
:bufdo 1

to delete line 1 from each file and then write. Note argdo will open each file in the arg list, and do the command. Whereas bufdo will do the command on each open buffer, and tabdo will do the command on each open tab.

Note that this particular task is better done with sed via

sed -i -e '1d' *.txt