themercee
8/9/2019 - 6:53 PM

vim command

Search/replace all foo by bar in the file

:%s/foo/bar/g

To reuse value match in the search: \0

ex: Add a word to all last line in a file:

:%s/.$/\0zzzz/g