mirror of
https://github.com/luzifer/vim.git
synced 2024-12-29 22:31:20 +00:00
Fixing arrow keys when using vim in tmux
This commit is contained in:
parent
136a34ea72
commit
67a1299d6d
1 changed files with 11 additions and 0 deletions
11
vimrc
11
vimrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue