Sunday, July 8, 2012

Re: How to remove empty lines except of one

On 07/08/12 15:54, rockybalboa4 wrote:
> I tried things like
> :s/^\r\r\r/\r/g

As I mentioned earlier in the thread, for some (historical?) reason,
Vim uses \n on the left side and \r on the right side, so you want

s/^\n\n\n/\r/g

-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