I want to join all lines in a file into a single line. What is the simplest way of doing this? I\'ve had poor luck trying to use substitution (\\r\\n or
\\r\\n
You can do it with 3 keystrokes starting from normal mode:
:%j
:
%
j
Now it seems that this adds a space between the lines. I am not sure if you want this.