+ Reply to Thread
Results 1 to 1 of 1
Thread: Commands for search and replace
-
Administrator
- Join Date
- Mar 2010
- Posts
- 74
Commands for search and replace
First occurrence on current line: :s/OLD/NEW
Globally (all) on current line: :s/OLD/NEW/g
Between two lines #,#: :#,#s/OLD/NEW/g
Every occurrence in file: :%s/OLD/NEW/g


LinkBack URL
About LinkBacks



Reply With Quote