On 02/12/09 05:56, 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? >
To delete the word under the cursor, with the whitespace on one side, use daw for Delete A Word. This "word" will be delimited by any non-keyword characters, see |'iskeyword'|. To delete a WORD instead (delimited by whitespace), use daW see ":help text-objects" Best regards, Tony. -- People will accept your ideas much more readily if you tell them that Benjamin Franklin said it first. -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php