One Man's Notes
Wednesday, August 26, 2015
vi / vim FAQ
Replace 'substitution':
:%s/Orig_Text/New_Text/g
% makes it affect all lines (instead of only the current line)
g makes it happen on all occurrences on each line (instead of just the first)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment