Friday, September 22, 2006

Linux:: How to make a substitution in VIM?

Just type:
and then
:%s/old_chain/new_chain/g
To highlight a string, just move the cursor to the strinf, then press and then # to move from one occurrence to another, just press n.

No comments: