On 26/08/09 21:56, Salvatore Benedetto wrote:
[...]
>
> \r instead of \n. That's interesting.
> Thanks.  :-)
>
[...]

Yes, one of the quirks of Vim is that to replace a line-break by itself, 
you must use

        :s/\n/\r/

because to _match_ a line-break it's still \n, not \r (which, in a 
pattern, matches a Ctrl-M character anywhere in the middle of the line). 
Even in Dos or Mac, where a line-break is represented on disk as ^M^J or 
^M respectively, you still match a linebreak with just \n.


Best regards,
Tony.
-- 
Why can't you be a non-conformist like everyone else?

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to