vim replace 2 line breaks with one3 code example
Example: 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
# 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