Find replace
Show line numbers
:set number
Replace using ranges
Insert # at begin of line from line 1 to 10
:1,10s/^/#
Find each occurrence on each line and replace
:%s/find/replace
e.g:
:%s/^0/27
Find each line starting with 0, and replace the zero with 27
No comments:
Post a Comment