On Sat, May 12, 2012 at 6:21 AM, Tim Chase <[email protected]> wrote: > On 05/12/12 05:49, Peng Yu wrote: >> daw only delete a word. I need to delete something between >> spaces. For example, I want to delete the whole string "$abc$", >> rather than just "abc". Is there a convenient way to do so? > > you can use "W" instead of "w" to see if either > > diW > daW > > does what you want.
Thanks Tim, Matteo and thinca, I want to delete a word in the context of the file that I'm editing using the same command. daW will delete the whole string, which is undesirable for perl. How to customize a dw command that can correctly delete a word depending on the context? word1($word2) -- Regards, Peng -- 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
