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


You need to login to view comments.