Answers for "search and replace all vim"

1

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
7

vim replace command

:%s/foo/bar/g
Posted by: Guest on May-22-2020
1

search and replace vim

:6,10s/<search_string>/<replace_string>/g | 14,18&&
Posted by: Guest on April-09-2020

Code answers related to "search and replace all vim"

Browse Popular Code Answers by Language