From http://vim.wikia.com/wiki/Search_and_replace:
:%s/foo/bar/g
Find each occurrence of 'foo' (in all lines), and replace it with 'bar'.
I search for
< or > then replace them with < or > and done.:%s/</\<\;/g to replace all instances of < with <:%s/>/\>\;/g to replace all instances of > with >
No comments:
Post a Comment