Posted By

wdso on 01/15/10


Tagged

regex vim


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wdso


vim search and replace


 / Published in: Bash
 

Howto search and replace in vim when editing a file.

  1. # Replaces every occurrence of the word foo with bar in the whole file.
  2. :%s/foo/bar/g

Report this snippet  

You need to login to post a comment.