In vim, when I opened a file, I wanted to add two empty lines at the end of each current line. I used the following switch:
%s/$/\n\n/
Apparently, this does not work, but what does work is:
%s/$/\r\r/
I thought \r is a Windows feature? Would anyone be able to explain a bit more.