- Set up search scope with
:args
command (populates vim's arguments list):
selects all .vue files recursively
:args **/*.vue
-
(optional) View arguments list with
:args
, add/remove with:argadd
and:argdelete
respectively -
run command for every file in args list with
:argdo
:
search and replace pattern (c flag for confirmation before substitution),
then save file if it was changed
:argdo %s/search/replace/gc | update