^[OB and ^[OA correspond to your terminal <down> and <up> .
I saw how these (and their friends ^[OC and ^[OD ) appear on the command line or pop-up menus and while using a pair of plugins in vim in tmux.
My solution was to match them with directional keys:
map ^[OA <up> map ^[OB <down> map ^[OC <right> map ^[OD <left>
If you do not know, you should not type ^[ as two characters, you should make <Cv><Esc> .
That is, in --INSERT-- mode --INSERT-- press the Control key and V , then press the Escape key. This will introduce the correct single character, which looks like ^[ .
romainl
source share