Wikia

Vim Tips Wiki

Changes: Map Ctrl-Backspace to delete previous word

Edit

Back to page

(Comments)
(Comments)
Line 25: Line 25:
   
 
==Comments==
 
==Comments==
In my version of Linux, this works properly in gvim, but not in terminal-vim. --[[User:Kanliot|Kanliot]] 08:38, May 28, 2012 (UTC)
+
In my version of Linux, this works properly in gvim, but not in terminal-vim. My keyboard mapping doesn't have a control-backspace. --[[User:Kanliot|Kanliot]] 08:38, May 28, 2012 (UTC)

Revision as of 08:39, May 28, 2012

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