John Trammell, Tue 2012-01-17 @ 11:17:21-0600: > This may be heresy on a vim mailing list, but perhaps you could script > it in perl?
Agreed; you can certainly do this in Vim (you are on the right track with :argdo), but a scripting language like Perl or even awk/sed is, in my opinion, better suited than an interactive text editor for this sort of batch editing. If you are set on using Vim, then just find a way to load all the files into the arglist (perhaps using a glob pattern that matches the files to be edited), and then you can execute the macro you recorded on each file with `:argdo normal! @q` (assuming the macro was stored in register q).
pgpewFgUU6lF5.pgp
Description: PGP signature
