There is the supertab binding <c-tab> that is supposed to produce a normal tab, but that doesn't work on my system (Mac; tried in iTerm and terminal). And I just remembered reading that Tab is equivalent to <c-i>. Wouldn't that imply that <c-tab><c-c-i> (≡ nonsense)? (I don't really need this binding, <c-v><c-i> is fine; but it got me curious.)


You are right about tab being the same same as ctrl+i, as explained in :help key-codes:

                    *key-notation* *key-codes* *keycodes*
These names for keys are used in the documentation.  They can also be used
with the ":map" command (insert the key name by pressing CTRL-K and then the
key you want the name for).

notation    meaning         equivalent  decimal value(s)    ~
<Nul>       zero            CTRL-@    0 (stored as 10) *<Nul>*
<BS>        backspace       CTRL-H    8 *backspace*
<Tab>       tab         CTRL-I    9 *tab* *Tab*

Following the procedure on Vim FAQ "20.4. I am not able to create a mapping for the key. What is wrong?" on my machine the output for ctrl+v tab differs from ctrl+v ctrl+tab, both on terminal and gVim,

So Vim is able to map ctrl+tab and tab independently. You could use the following mappings to check if your problem caused by some problem in Vim recognizing ctrl+tab or in supertab plugin:

inoremap <c-tab> abc
inoremap <tab> def
| improve this answer | |
  • From your answer I conclude that nothing can be done on my system. in iterm, c-tab produces nothing; in terminal, remapping tab also affects c-tab. – Toothrot Mar 26 '16 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.