Loading ...
Sorry, an error occurred while loading the content.

Re: What's the command to delete a word?

Expand Messages
  • Chris Jones
    ... dw or dW ... I find it more effective to think in terms of d (delete) + motion - where d deletes from your starting point in the buffer to where the
    Message 1 of 3 , Dec 1, 2009
    • 0 Attachment
      On Tue, Dec 01, 2009 at 11:56:03PM EST, Peng Yu wrote:

      > dd is the command to delete a line. I'm wondering what the command to
      > delete a word (including the spaces immediately afterward) is?

      dw or dW

      For the difference between 'word' and WORD, see:

      :h word

      I find it more effective to think in terms of 'd' (delete) + motion -
      where 'd' deletes from your starting point in the buffer to where the
      'motion' takes the cursor - see also 'de' and 'dE'.

      CJ



      --
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.