software:cli:vim:searchreplace
Change occurrence of a word by another from the line to the end of the file
:.,$s/word/another/g
add a character at the beginning of lines
:13,37s/^/%/
here on line 13 to 37 we add '%' at the beginning
-
software/cli/vim/searchreplace.txt · Last modified: 2021/12/29 20:09 by warnaud