vim search and replace


/ Published in: Bash
Save to your folder(s)

Howto search and replace in vim when editing a file.


Copy this code and paste it in your HTML
  1. # Replaces every occurrence of the word foo with bar in the whole file.
  2. :%s/foo/bar/g

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.