On 2009-11-22 15:59, pepegnu wrote:
> Consider the following situation, you edit the text (underscore
> represents whitespace):
> 
>        blah-blah-blah_____________________<cursor
> here>___________________blah-blah-blah again
> 
> Now, it seems that '_' (underscore) is a free token in the context of
> a text-object. If defined as a new text-object for whitespace, one
> will be able to trim whitespace around the cursor in the example above
> by issuing da_ (mnemonics: delete-a-blank),  or  ci_ (change-in-blank)
> in normal mode to get
> 
>        blah-blah-blah blah-blah-blah again

Does iw (diw, ciw, etc) do what you want? iw it has odd behavior when
using newlines which might not be what you want, but it might work for
tabs and spaces.

Attachment: pgp2GL6W59ZKL.pgp
Description: PGP signature

Raspunde prin e-mail lui