> Set 'backspace' to some sensible value ("indent,eol,start") and place
> the cursor in the middle of some line of text. Then try these:
> 
>     a<C-U>
>     deletes to the beginning of the line
> 
>     afoo<C-U>
>     deletes just "foo"
> 
>     afoo<C-U><C-U>
>     deletes "foo", then to the beginning of the line
> 
>     afoo<Left><Left><Left><C-U>
>     deletes everything before "foo"
> 
> Apparently <C-U> deletes backwards to the beginning of the line, unless
> the cursor is just past some newly entered text, in which case it
> deletes backwards to the beginning of the entered text.
> 
> This dual behaviour doesn't seem to be documented anywhere.
> 
> 
How about this:

                                                *i_CTRL-U*
CTRL-U          Delete all entered characters before the cursor in the current
                line.  If there are no newly entereed characters and
                'backspace'is not empty, delete all characters before the
                cursor in the current line.
                See |i_backspacing| about joining lines.

-- 
Well, you come from nothing, you go back to nothing...  What have you
lost?  Nothing!
                                -- Monty Python: The life of Brian

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui