Sunday, October 31, 2010

Re: delete only the short sentences

2010/11/1 AMDx64BT <amdx64bt@gmail.com>:
> And to keep only the sentences in the range 40-60 characters long and
> delete the rest?

:g/^.\{,39\}$/d

and

:g/\(^.\{,39\}$\)\|\(^.\{61,\}$\)/d

should work.

>
> On Nov 1, 4:32 am, AMDx64BT <amdx6...@gmail.com> wrote:
>> I want to delete all the lines with long < 40 characters (including
>> white-spaces) and keep the others. Is there any command to do that?
>
> --
> 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
>

--
Joan Miquel Torres__________________________________
Linux Registered User #164872
http://www.mallorcaweb.net/joanmiquel
BULMA: http://bulma.net http://breu.bulma.net/?l2301

--
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: