1
0
mirror of https://github.com/luzifer/vim.git synced 2024-09-19 19:12:55 +00:00

Fixing arrow keys when using vim in tmux

This commit is contained in:
Knut Ahlers 2013-12-12 22:48:43 +01:00
parent 136a34ea72
commit 67a1299d6d

11
vimrc
View File

@ -938,3 +938,14 @@ hi SignColumn cterm=none ctermbg=none
"
filetype plugin on
"
" I want to use Shift+Arrow in VIM
" http://superuser.com/questions/401926/how-to-get-shiftarrows-and-ctrlarrows-working-in-vim-in-tmux
"
if &term =~ '^screen'
" tmux will send xterm-style keys when its xterm-keys option is on
execute "set <xUp>=\e[1;*A"
execute "set <xDown>=\e[1;*B"
execute "set <xRight>=\e[1;*C"
execute "set <xLeft>=\e[1;*D"
endif