On 24/05/11 14:31, Eljay Love-Jensen wrote:
[...]
I'm not sure why I have to search FOR multiple \n and replace WITH the
\r.  That may be a vi-thing, a Vim-thing, or a quirk / detail of my
platform (Windows 7, using the prebuilt gVim, using :set ff=unix line
endings).  Hmmm, I never thought about that discrepancy before.  [...]

It may be vi-compatible, but it's one of those "Vim quirks" which one has to know: in Vim, to replace a line break by itself, you use :s/\n/\r -- i.e., search for \n to find a line break, insert \r to add a line break.

Don't ask me why.


Best regards,
Tony.
--
There once was a member of Mensa
Who was a most excellent fencer.
        The sword that he used
        Was his -- (line is refused,
And has now been removed by the censor).

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to