On Mar 28, 2011, at 1:33 PM, David Kahn wrote:

> I am guessing this should be a real simple question but cant find an answer
> readily:
> 
> If I want to remove all contents of a line, I press 'd' twice. But in most
> cases I want the line to still be there (meaning the space, so after
> deleting I would have a blank line), so I tend to find myself when deleting
> afterward replacing the line (like shift + O).
> 
> So if I am making any sense, is there a way to remove all contents of a line
> without removing the line itself (I guess similarly to using x to delete a
> character but for a whole line)?

0D  will delete all text from the line.
^D  will delete all text starting from the first non-blank character.

More details on:

:help 0
:help ^
:help D

Israel

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

Reply via email to