On 07/04/12 20:58, meino.cramer@gmx.de wrote:
> I tried things like
>
> :s/^\r\r\r/\r/g
>
> but with no success...
For some reason (legacy?), Vim uses \n on the left side and \r on
the right side, so you want something like
:%s/\n\{2,}/\r
optionally tweaking the "2" and the number of "\r"s for your
particular use-case
-tim
--
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
No comments:
Post a Comment