Difference between revisions of "Vi search and replace"

From knowledgebase
Jump to navigation Jump to search
 
Line 1: Line 1:
−
vi search and replace
+
In search use \( and \) to 'chop up' search expression.
 +
Use \1, \2 etc in replace
 +
 
 +
Example:
 
[[Category:log]]
 
[[Category:log]]

Latest revision as of 19:44, 27 August 2020

In search use \( and \) to 'chop up' search expression. Use \1, \2 etc in replace

Example: