I've been trying to get Shift+Tab or
<S-Tab> to work in VIM and for the life of me I can't figure it out.
I read this document, but the
remap solution only works for normal mode (because if I press Shift+Tab, VIM reads the literal escape
^] in the Shift+Tab escape sequence
^]]Z, which causes VIM to leave insert mode!), and the
set t_kb="<stuff>" also only works for normal mode on my VIM. You can test the latter option by entering
:exe 'set t_kB=' . nr2char(27) . '[Z' :nmap <S-Tab> ihello world! :imap <S-Tab> hello world!
then try pressing Shift+Tab. The first remap does work, but the second remap is ignored. I also tried the
xmodmap from the terminal, then entering VIM, and still I have the same issue.
Can anything be done here?