Wysmedia.com

Icon

~ We make IT easy for you ~

vim search and replace on multiple files

To search and replace on multiple files

First type :args **/*.groovy (change groovy with file extension you want to search and replace)

Type :argdo %s/something to replace/with new words/g |w

When you type |w, it means you tell vim to save every edited file. If you are not using w, it will not save and stopped on first file (it always ask file save before going on to next file)