vimtmuxtcshbackspacekonsole

Fix backspace in vim + tmux + tcsh + konsole


My shell is tcsh. I'm using vim in tmux with konsole. When I type backspace in insert mode it inserts ^?. This only happens in tmux. In konsole settings the backspace input is set to \b. I try changing it to \x8 and there is no change. fixdel doesn't help, set bs=2 in .vimrc doesn't work. I don't use setty anywhere, nor do I change the tmux keybindings. Any help? Please?


Solution

  • Just try :set backspace=indent,eol,start. Then, check your backspace. If this works, just put this line in your vimrc.

    This works for me with Vim+tmux; I don't use Konsole or tcsh, so I can't confirm that those won't break it, but I'd be very surprised if those did.