Search and Replace in VIM

Last updated on October 27th, 2013 at 09:54 pm

You can search and replace easily in VIM using this way

:%s/foo/bar/gc

Always have confirmation first, if you want to replace all, can choose ‘a’ after the search.

Discover more from Juzhax Technology

Subscribe now to keep reading and get access to the full archive.

Continue reading