Friday, January 1, 2010

Re: How to delete everything before the cursor until the beginning of the line?

On Fri, Jan 01, 2010 at 06:40:24PM EST, Tim Chase wrote:
> Chris Jones wrote:
> > On Fri, Jan 01, 2010 at 06:04:46PM EST, Peng Yu wrote:

> >> 'D' deletes everything after the cursor until the end of the line. Is
> >> there a command that delete everything before the cursor until the
> >> beginning of the line?
> >
> > v0d is what I do.. three key presses. Surely there's a better way?
>
>
> d0
>
> should do the trick. No need to go visual.

:-)

dw, d$, dG, d{, dgg, etc. IOW, 'd'+cursor movement.. what was I
thinking.

CJ

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

No comments: