Wednesday, December 5, 2007

vi search and replace all

:%s /search_text/replace_text/g

If either of the search or replace texts has a forward-slash '/', use the backward-slash '\' to escape it.

No comments: