Monday, November 30, 2009

Re: Delete weird paragraph (or "item" paragraph)

Saluton Tony :)

Tony Mechelynck <a...@gmail.com> skribis:
> On 28/10/09 11:36, Raúl Núñez de Arenas Coronado wrote:
>> I use Vim to store lists of items, like the one below:
>>
>> - This is a think I should do, or maybe buy - Feed my cat - Tell my
>> cat he is a naughty boy for having chewing up my most   expensive
>> headphones without having even considered the possibility of   eating
>> a cheaper pair (or none). - Write a message to vim_use to ask how to
>> delete items from lists like   this, where some of the items are
>> oneliners but others are clearly   not, and may or may not have a
>> final period - More items, this time an oneliner - Stop using
>> computers. NOW!
>>
>> The problem is that, sometimes I want to delete, cut or paste an
>> item. Deleting, cutting or pasting one-line items is very easy, just
>> dd or yy and p afterwards. The problem are the multiline items.
>
> Hi Raúl: As you can see, I'm still a month behind.

Don't worry, I understand perfectly. I've been almost a week far from
the computer and I have a ton of pending mail (including this!). Thanks
a lot for your reply :)

> However, have you thought of using ranges made of search patterns (for
> the ":y[ank]" and ":d[elete]" commands)?

I must confess that this is the first time I heard about ranges made of
search patterns O:) They're QUITE useful!

Thanks for the examples. I'll try to make much more use of them, they're
very useful. I don't know why I didn't discover them before!

Oh, and BTW, I saw your correction in your next message, thanks :)

--
Raúl "DervishD" Núñez de Arenas Coronado
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

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

No comments: