On Sep 7, 2:29 pm, [email protected] wrote: > on the commandline (zsh) I often use Alt-backspace to delete > the word before the cursor. > > Is there any way to map a vim command (-sequence) to Alt-backspace > to do the same ?
This depends on OS, and gui or terminal emulator. On my kubuntu gvim (with gtk2-gnome gui) can map alt-backspace, but vim in gnome-terminal or konsole can't, vim in xterm can. To see for your set-up, go into vim's insert mode, type control v, alt- backspace. (If control v is paste for you, use control q.) If you see something inserted into your buffer, it can go on the left hand side of a map command. In my gvim :map! <M-BS> <C-W> deletes the word before the cursor in insert mode. Regards, John --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
