[lug] Vim maps / vimrc files for html editing

dio2002 at indra.com dio2002 at indra.com
Mon Feb 19 12:33:30 MST 2007


yes.. argdo was the command i was looking for!

> find . -name '*.html' | xargs vim
>
> to start Vim with all the files you might want to find/replace, then
>
> :ed file.html
>
> to edit the particular file, then

what is 'ed' (i imagine edit file) and why do you need it?

won't vim just load the first file passed to xargs and then proceed
accordingly from file to file as you finish the last prompted substitution
in each file automatically on its own?

> :argdo %s/from/to/gce


super thanks!



More information about the LUG mailing list