Answers for "find but not replace in vim same string"

2

vim replace multiple lines

# Replace all instances of foo with bar
:%s/foo/bar/g

# Replace all instances of foo in lines 6 to 10 inclusive with bar
:6,10s/foo/bar/g
Posted by: Guest on October-02-2020
7

vim replace command

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language