Skip to content

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

Open

Description

@ruohola

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>

Activity

  1. 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
  2. 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
  3. ychin commented on Jun 22, 2020

    @ychin
    Member

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

  4. added
    Vim ParityIssues related to MacVim support of core Vim features.
    on Jun 22, 2020
  5. ruohola commented on Jun 22, 2020

    @ruohola
    Author

    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.

  6. added
    InputIssues related to keyboard or other types of input
    on Aug 11, 2020
  7. added this to the Backlog milestone on Sep 21, 2020
  8. modified the milestones: Backlog, Release 175 on Aug 9, 2022
  9. modified the milestones: Release 175, Release 176 on Oct 11, 2022
  10. zldrobit commented on Feb 29, 2024

    @zldrobit

    I have verified that gVim 9.1 on Linux/Windows does differentiate between and mappings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    InputIssues related to keyboard or other types of inputVim ParityIssues related to MacVim support of core Vim features.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions