I want to map tab to the following button sequence: ctrl+x -> tab to a method call in .vimrc (in insert mode). The method is also in .vimrc
I kwow i should use inoremap <tab> button-sequence=method()<CR>
But how should I write the button sequence in the row above?
Thank you
I’m not sure I understand your question but this is how you’d map
<Tab>to executefunction()in insert mode.edit
I had to double check because I didn’t know that
<C-x><Tab>thing. It turns out that the real mapping is<C-x><C-i>::h i_ctrl-x_ctrl-i.<Tab>and<C-i>represent the same character from the terminal’s (and Vim’s) standpoint.So… this is what you want, even if mapping
<Tab>to anything other than<Tab>in insert mode seems rather silly to me:See
:h key-notationand:h mapping.