vim remove line breaks
I've copied a bunch of text into vim and I need to get rid of the line breaks. I've tried
:%s/^M// (where ^M is C-v C-m) and :%s/.$// and :%s/\x0D$// and :%s/\$// none of which work. If I issue :set invlist all lines are terminated with a '$'. How can I get rid of them? Ta Col |
s/\n//
or the 'j' command on particular lines |
's/\n//'! I always miss the obvious ones... Thanks slakmagik
|
Or run dos2unix <file> at the cmd line.
|
All times are GMT -5. The time now is 05:44 PM. |