macvim icon indicating copy to clipboard operation
macvim copied to clipboard

Add ability to map <TAB> and <C-I> separately like XTerm or iTerm2 have done

Open ruohola opened this issue 5 years ago • 3 comments

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>

ruohola avatar Jun 20 '20 19:06 ruohola

Yeah this would be a good idea. I can look this up but do you know if gVim also supports this on Windows/Linux?

ychin avatar Jun 22 '20 10:06 ychin

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.

ruohola avatar Jun 22 '20 14:06 ruohola

I have verified that gVim 9.1 on Linux/Windows does differentiate between <C-I> and <Tab> mappings.

zldrobit avatar Feb 29 '24 01:02 zldrobit