I want to use the <delete> key (C-d, I think) for forward-deletion in viper-mode.
Before starting viper-mode, <delete> works correctly. In viper-mode, <delete> jumps to the buffer's last line.
I have added (setq viper-ex-style-editing nil) to .viper and <backspace> works in all modes.
Try this:
Now, that uses the
viper-delete-charcommand to be consistent withviper. If you want the regular emacs deletion behavior, usedelete-charinstead.viperis implemented using a bunch of different keymaps, and figuring out which ones to modify is tricky. The easiest way (usually) is to just look at the source code. So you could start with M-x find-library viper. Note: Most keymaps are actually defined in the libraryviper-cmd.