Search code examples
vimmacvim

<C-I> mapped incorrectly in macvim


I was trying to navigate the jump list in MacVim and I noticed that <C-I> doesn't work, although it works fine in normal Vim.

In insert mode, pressing <C-V><C-I> gives <D-<89>>. <C-V><Tab> gives ^I. (In normal vim (not MacVim), doing the same yields ^[ and ^I, respectively.)

My first thought was to check if I had a mapping set.

output of :map

x  gx            <Plug>NetrwBrowseXVis
n  gx            <Plug>NetrwBrowseX
x  <Plug>NetrwBrowseXVis * :<C-U>call netrw#BrowseXVis()<CR>
n  <Plug>NetrwBrowseX * :call netrw#BrowseX(netrw#GX(),netrw#CheckIfRe
mote(netrw#GX()))<CR>

output of :map!

No mapping found.

I saw mentioned on this thread that <Tab> and <C-I> are mirrored. But I don't have a mapping for <Tab> anywhere as you can see above.

I'm stuck at this point. Help appreciated!


Solution

  • In theory, <C-v><C-i> should just produce a simple <Tab> (U+0009), definitely not <D-<89>> or <D-<anything>> for that matter.

    In <D-<89>>,

    U+0089 seems vaguely related to U+0009 so that would be one thing to investigate, but the combination with the Command key is weird.

    If I were you I would open an issue in MacVim's issue tracker.