Map Ctrl-Backspace to delete previous word
Talk0
1,599pages on
this wiki
this wiki
Redirected from VimTip189
Tip 189 Printable Monobook Previous Next
created January 2, 2002 · complexity basic · author Robert Ames · version 5.7
Put this in your vimrc and then you'll be able to type Control-Backspace to delete the previous word.
" map control-backspace to delete the previous word :imap <C-BS> <C-W>
References
Edit
See also
Edit
Comments
Edit
In my version of Linux, this works properly in gvim, but not in terminal-vim. My keyboard mapping doesn't have a control-backspace. --Kanliot 08:38, May 28, 2012 (UTC)