0

CTRL-W Delete the word before the cursor

karl arvin almario 7 years ago • updated by 6 years ago 2
this is one of my used commands in vim, this is very useful on the vintage mode for the vim power users  

description
*i_CTRL-W*CTRL-WDelete the word before the cursor (see |i_backspacing| aboutjoining lines).  See the section "word motions",|word-motions|, for the definition of a word.

+2

You can do this yourself. In your user key bindings add:

{"keys": ["ctrl+w"], "command": "delete_word", "args": {"forward": false, "sub_words": true}}

Yes!  Thanks for removing a big annoyance!