Mapping arrow keys when running tmux
问题 These key mappings stop working in tmux. In my .vimrc , I have: nmap <Space> i map <C-Down> <C-w>j map <C-Up> <C-w>k map <C-Left> <C-w>h map <C-Right> <C-w>l When I run :map , I see: <C-Right> <C-W>l <C-Left> <C-W>h <C-Up> <C-W>k <C-Down> <C-W>j Yet when I hit control and an arrow key at the same time, it behaves as if no keybinding was set. 回答1: Vim knows that xterm -like terminals (identified by TERM starting with xterm , or a particular response to the t_RV sequence, if it is defined)