search

Home  >  Q&A  >  body text

vim - Why does <c-y> trigger when <c-i> is pressed when <tab> is mapped to <c-y>?

In insert mode, the functions of <c-j> and <cr> are also the same. However, when <cr> is mapped to <Esc>, when <c-j> is pressed, the normal mode will not be entered.
I feel that the relationship between <c-i> and <tab> is similar to the former, but the performance is different. I use <tab>Map emmet's <c-y>, but <c-i> will also trigger <c-y>. The same is true even with non-recursive mapping inoremap.

PHP中文网PHP中文网2774 days ago705

reply all(1)I'll reply

  • 黄舟

    黄舟2017-05-16 16:36:44

    Please learn to use :help [key position] to view their essence, for example :help i_CTRL-J is like this:

    Another example :help i_CTRL_I is this:

    I think the help documentation is pretty self-explanatory.

    reply
    0
  • Cancelreply