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
Ah, I found the answer.
:1,$join
Works like a charm.
EDIT: As pointed out in the comment:
:%join -or- :%j
...removes the range.