Search (Wraped around at end of file):
Search STRING forward :
/ STRINGSearch STRING backward:
? STRINGRepeat search:
nRepeat search in opposite direction:
N (SHIFT-n)Replace: Same as with sed, Replace OLD with NEW:
First occurrence on current line:
:s/OLD/NEWGlobally (all) on current line:
:s/OLD/NEW/gBetween two lines #,#:
:#,#s/OLD/NEW/gEvery occurrence in file (global):
:%s/OLD/NEW/g
No comments:
Post a Comment