You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add ability to map <TAB> and <C-I> separately like XTerm or iTerm2 have done #1052
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 modifyOtherKeyshttps://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>
changed the title [-]Add something like xterm modifyOtherKeys or iTerm CSI u[/-][+]Add ability to map <TAB> and <C-I> separately like xterm or iTerm2 have done[/+]on Jun 20, 2020
changed the title [-]Add ability to map <TAB> and <C-I> separately like xterm or iTerm2 have done[/-][+]Add ability to map <TAB> and <C-I> separately like XTerm or iTerm2 have done[/+]on Jun 20, 2020
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.
Activity
[-]Add something like xterm modifyOtherKeys or iTerm CSI u[/-][+]Add ability to map <TAB> and <C-I> separately like xterm or iTerm2 have done[/+][-]Add ability to map <TAB> and <C-I> separately like xterm or iTerm2 have done[/-][+]Add ability to map <TAB> and <C-I> separately like XTerm or iTerm2 have done[/+]ychin commentedon Jun 22, 2020
Yeah this would be a good idea. I can look this up but do you know if gVim also supports this on Windows/Linux?
ruohola commentedon Jun 22, 2020
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.
zldrobit commentedon Feb 29, 2024
I have verified that gVim 9.1 on Linux/Windows does differentiate between and mappings.