Answers for "find replace all vim"

3

vim replace all

'foo' to 'bar'

:%s/foo/bar/g
:6,10s/foo/bar/g

% => run this command on all lines.
g => match multiple occurences in the same line.
Posted by: Guest on January-08-2022

Browse Popular Code Answers by Language