Vim arglist => replace text to multiple files
-
:arg
=> list files in arglist -
:argdelete *
=> clean arglist -
:argadd **/*.rb
=> add files to arglist -
:argdo %s/foo/bar/gc
=> replace foo by bar in arglist -
:argdo update
=> save changes to arglist -
:argdo undo
=> undo changes to arglist
Navigation in arglist
-
[a
=> go to the previous file in arglist -
]a
=> go to the next file in arglist -
[A
=> go to the first file in arglist -
]A
=> go to the last file in arglist