Jürgen Krämer wrote:
Hi,
Allan Kelly wrote:
Hello, I'd like Ctrl-D to delete a character in insert mode. This does not
work (Ctrl-D continues to do the page down thing):
that might be because you were not in insert mode. "the page down thing"
is VIM's behaviour when pressing Ctrl-D in normal mode. Ctrl-D in insert
mode should remove one shiftwidth of indent.
Imap <Ctrl-D> <Ctrl-o>x
Any ideas?
Did you really write "Imap" with an upper case "I"? You should write it
with a lower case "i".
Regards,
Jürgen
... and in addition to that, in a mapping you should use <C-D> and <C-O>. The
way you did it, and assuming that you used a lowercase i in "imap", the
sequence "less-than uppercase-C-for-Charlie lowercase-t-for-Tango
lowercase-r-for-Romeo lowercase-l-for-Lima dash-or-minus uppercase-D-for-Delta
greater-than" (eight characters) gets mapped to "less-than
uppercase-C-for-Charlie lowercase-t-for-Tango lowercase-r-for-Romeo
lowercase-l-for-Lima dash-or-minus uppercase-O-for-Oscar greater-than
lowercase-x-for-X-ray" (nine characters).
Best regards,
Tony.