Add ability to map <TAB> and <C-I> separately like XTerm or iTerm2 have done
Is your feature request about something that is currently impossible or hard to do? Please describe the problem.
Currently we can't remap for example <TAB> and <C-I> separately, they both always do the same thing.
Describe the solution you'd like
Would be nice if these, and other control keys (<CR> and <C-M>, <BS> and <C-H> etc.), could be mapped separately.
Additional context
<TAB> and <C-I> can already be mapped separately in a Vim 8.2 running XTerm using modifyOtherKeys https://invisible-island.net/xterm/modified-keys.html or in iTerm2 when 'Control sequences can enable modifyOtherKeys mode' has been enabled from Preferences -> Profiles -> Keys.
One can easily test if the keys get registered separately with:
nnoremap <C-I> :echom "Ctrl-I was pressed"<CR>
nnoremap <TAB> :echom "Tab was pressed"<CR>
Yeah this would be a good idea. I can look this up but do you know if gVim also supports this on Windows/Linux?
Yeah this would be a good idea. I can look this up but do you know if gVim also supports this on Windows/Linux?
Just checked on Windows and at least the out-of-the-box gVim 8.2 does not differentiate those keys. A quick googling also didn't find anything about gVim supporting this yet.
I have verified that gVim 9.1 on Linux/Windows does differentiate between <C-I> and <Tab> mappings.