Answers for "vim add spaces to multiple lines"

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
0

vim add single space to multiple lines

:'<,'> norm I 
# note the space at the end. it is required.
Posted by: Guest on November-03-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language