Support ^W shortcut out of the box

pazsxn 12 years ago updated by Joel Thornton 12 years ago 2
It's readline standard for deleting last word. In TextMate it highlights last word, which is good enough as well.
{ "keys": ["ctrl+w"], "command": "expand_selection", "args": {"to": "word"} }
Seconding the DIY approach. Ctrl+W already has a common idiomatic assignment on Windows, "close tab or current document".

ST2 uses Ctrl+D to perform "expand selection to word", and also has the very nice additional effect of selecting additional matching words in the document when you press Ctrl+D repeatedly.