When I use VIM in the terminal on my local machine (Mac OS X Snow Leopard), the delete key is really backspace (i.e., destructive backspace).
When I SSH into a particular server, for some reason it's regular delete (i.e., delete the character under the cursor).
How can I change it to be consistent? I've tried a dozen solutions, but nothing seems to work.
Checking the "Delete sends Ctrl-H" box in Terminal Preferences->Advanced doesn't work -- this is non-destructive backspace.
I've tried about a hundred different key mappings in VIM, to no avail.
Interestingly, the key works as expected when I'm typing commands in VIM (e.g., : <something>
) -- it's only screwed up when I'm editing the actual text. Any ideas?
I end up with a command looking like ":set=^?". I entered it both at the command line in VIM and in my .vimrc; also tried setting in the same way, but nothing makes any difference at all. verbose imap and verbose imap both say "no mapping found." Very frustrating since, as I mentioned, the key works as it should (as destructive backspace) when I'm actually typing the VIIM command at the :prompt; just goes wrong in the actual document. ` with `set= =`. On all my terminals ` ` sends "^[[3~", but I saw terminals where it sends `^?`. What do you mean by «destructive backspace»? Maybe you should try `inoremapcl` (I use this sequence for deleting previous character in transliteration plugin, it works regardless of `backspace` and `delcombine` options). Also try `:fixdel` command.