Answers for "vim replace from line to line"

0

vim replace between lines

:5,12s/foo/bar/g
Posted by: Guest on June-21-2020
0

vim replace whole line

Enter substitute mode for the line: S.
Paste the line you copied: shift + insert (or whatever other you mapping you have for pasting from the clipboard).
Posted by: Guest on November-01-2021

Browse Popular Code Answers by Language