Reputation: 1254
so I would like to use the same keybinding for my terminal and for my vim editor. Example open new tab: Ctrl-t
is there a way to use a key to specify to which instance my binding will be applied. example:
is this possible or I necessarily need to choose different keybinding in order to use them all
Upvotes: 1
Views: 324
Reputation: 5861
You must have different key bindings for Vim and for your terminal. Vim doesn't read keyboard input independently of the terminal it lives in, it reads the keyboard from the terminal. If you press a key sequence that has a meaning for the terminal, the terminal will apply whatever function corresponds to it, and it simply won't hand the sequence to Vim.
Upvotes: 1