Vim search and replace across many files

2015

December

3

Tags:

A powerful combination of commands for search and replace across multiple files with Vim.

http://vim.wikia.com/wiki/Opening_multiple_files_from_a_single_command-line http://vim.wikia.com/wiki/Search_and_replace_in_multiple_buffers

:arg **/*.cpp

:argdo %s/pattern/replace/ge | update