It seems that the ctrl-sequence that vim sends for the
<up> key is:
This seems to work as an
<up> arrow in all modes except
insert mode, where it inserts in an "A" in that mode.
How would I do the following remap in vim?
inoremap ^[OA <Up>
That is, how do I pass the special ctrl sequences, such as
^[ to vim?
Note that in the above I am using:
- iTerm2 for the terminal (though I've tested in the native Terminal and it appears the same in vim). The result of
- The result of
t_ku <Up> ^[O*A.