Remplacer un texte dans tous les fichiers ouverts dans vim
1. From vim
:argdo %s/foo/bar/g | wq
2. Target multiple files from the console
$ vim +'argdo %s/foo/bar/g' +wq *.txt
3. Alternative
$ vim -c 'set autowriteall' -c 'argdo %s/&\(.\) /\&\1/g' path/to/*.adoc (1) (2)
| 1 | « . » a bare dot is the wildcard |
| 2 | « \& » will generate a single & caracter instead of the whole matched pattern… |