Hi everybody,

This is my first post to this group to propose an enhancement to Vim
which (I'm just a Vim user and not a developer, so that all the
statements below should be considered beginning with "IMHO")

     1) provides some often needed functionality
     2) is not available (at least in <= three keystrokes) in Vim
        (while existent, in two keystrokes, in Emacs -> `M-\’ (‘delete-
horizontal-space’))
     3) is highly consistent with the spirit of Vim
     4) is not affecting/orthogonal/independent of/to existing normal-
mode commands
     4) should be quite easy to implement

Suppose we had a predefined text-object for whitespace ([[:blank:]],
consecutive spaces+TABs+(newlines?) in Vim following the same logic as
w|Word, sentence, paragraph, block, tag, etc (used every so often by
daw  (the delete-a-word command), cit (change-in-tag), vit (mark-in-
tag), etc.).

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

This will be consistent with the behaviour all the other text objects
under the operations c(hange)|d(elete)|v(mark) etc., so I suppose that
it will be a welcome extension, which is

                  * easy to memorize
                  * acting consistentley under the same operators as
the rest of the text objects
                  * hopefully benevolently embraced by the Vim-users
community.

Best regards,
//Peppe

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

Raspunde prin e-mail lui