Wikia

Vim Tips Wiki

Map Ctrl-Backspace to delete previous word

Talk0
1,612pages on
this wiki
Revision as of 08:39, May 28, 2012 by Kanliot (Talk | contribs)

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

See also

Comments

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)

Around Wikia's network

Random Wiki