The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

1

Select the lines you'd like to merge, enter an Ex command by typing a colon : in normal mode. Then type this command: s/$\n\s*//gc The entire command should look likewise: :'<,'>s/$\n\s*//gc This is actually a tweaked version of the @insidepower's command that replaces space-indentations as well as newline characters. Explanation: '<,'> ...


Top 50 recent answers are included