1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-18 09:53:22 -07:00

move tmux stuff further up

This commit is contained in:
Connor Olding 2021-10-07 12:28:06 -07:00
parent 9f3301aa95
commit 26c2863dde

View File

@ -36,6 +36,15 @@ if (&term =~ "^xterm") || (&term == "screen")
"let &t_AB="\e[48;5;%dm"
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
if has('syntax')
@ -188,15 +197,6 @@ set backspace=eol,start,indent " make backspace useful
" tab completion in command-line
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
"exec "set <s-Tab>=\e[Z"
"map <Esc>[Z <s-tab>