mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
move tmux stuff further up
This commit is contained in:
parent
9f3301aa95
commit
26c2863dde
1 changed files with 9 additions and 9 deletions
18
home/vimrc
18
home/vimrc
|
@ -36,6 +36,15 @@ if (&term =~ "^xterm") || (&term == "screen")
|
||||||
"let &t_AB="\e[48;5;%dm"
|
"let &t_AB="\e[48;5;%dm"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if &term =~ '^tmux'
|
||||||
|
" https://unix.stackexchange.com/a/34723
|
||||||
|
" tmux will send xterm-style keys when xterm-keys is on
|
||||||
|
exec "set <xUp>=\e[1;*A"
|
||||||
|
exec "set <xDown>=\e[1;*B"
|
||||||
|
exec "set <xRight>=\e[1;*C"
|
||||||
|
exec "set <xLeft>=\e[1;*D"
|
||||||
|
endif
|
||||||
|
|
||||||
" main config {{{1
|
" main config {{{1
|
||||||
|
|
||||||
if has('syntax')
|
if has('syntax')
|
||||||
|
@ -188,15 +197,6 @@ set backspace=eol,start,indent " make backspace useful
|
||||||
" tab completion in command-line
|
" tab completion in command-line
|
||||||
if has('wildmenu') | set wildmenu | endif
|
if has('wildmenu') | set wildmenu | endif
|
||||||
|
|
||||||
if &term =~ '^tmux'
|
|
||||||
" https://unix.stackexchange.com/a/34723
|
|
||||||
" tmux will send xterm-style keys when xterm-keys is on
|
|
||||||
exec "set <xUp>=\e[1;*A"
|
|
||||||
exec "set <xDown>=\e[1;*B"
|
|
||||||
exec "set <xRight>=\e[1;*C"
|
|
||||||
exec "set <xLeft>=\e[1;*D"
|
|
||||||
endif
|
|
||||||
|
|
||||||
" mintty pls
|
" mintty pls
|
||||||
"exec "set <s-Tab>=\e[Z"
|
"exec "set <s-Tab>=\e[Z"
|
||||||
"map <Esc>[Z <s-tab>
|
"map <Esc>[Z <s-tab>
|
||||||
|
|
Loading…
Add table
Reference in a new issue