- Lookup the key you want to override - :help terminal-options
- Then type "set ~option~=
~Control V~~press the key that doesn't work~" - The key is now overriden. To make it permanent, copy the command into your .vimrc (use :
to view a buffer of all ex commands for easy copy/pasting).
This might sound a little complicated. Its not. Here is an example. Say that the 'up' arrow key doesn't do anything when you are in vim. No problem.
- Type :help terminal-options --- Aha, I see a table and in that table it says that 't_ku' is the 'arrow up' key.
- Type :set t_ku=
~Ctrl-V~~up~ (where everything between ~s are the control V and then pushing the up key). - Tada, the up arrow key now works correctly.
3 comments:
what do you use arrow keys for in vim?
Funny! Good question. Just ex mode stuff.
Thanks a ton!
:set t_ku=^[OA
:set t_kd=^[OB
:set t_kr=^[OC
:set t_kl=^[OD
in my ~/.vimrc lets me use the arrow keys in insert mode now!
Post a Comment