:%s/,$//g
2. ^M in vimto remove the ^M use %s/<ctrl+V>+ <Enter>//g
press ctrl+v key and then hit Enter key to input ^M in vim command mode.
3. Replace ^with #:
:set number
:10,12s/^/#
Finish replacing you may find that the first column of the file is still in highlight mode, to clear:
use :noh
No comments:
Post a Comment