A chronological documentation test project, nothing serious, really!

07 May 2007 vim search and replace text

Posted by

Different ways of replacing text etc.

Replace every occurrence of pattern1 (pat1) with pat2


Replace every occurence of pattern1 (pat1) with a newline


In practice this inserts a newline after every occurence of pat1.

Tags: ,

Comments are closed.