Every day is a discovery
This is mostly a technical blog with my learning at work.
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment