1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-25 16:57:12 -07:00

add tmux hacks

This commit is contained in:
Connor Olding 2019-06-05 16:08:55 -07:00
parent 5846da2bd7
commit 1e840bf1be
2 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,8 @@ try | call mkdir(&backupdir, "p") | catch /E739/ | endtry
try | call mkdir(&directory, "p") | catch /E739/ | endtry
try | call mkdir(&undodir, "p") | catch /E739/ | endtry
if (&term =~ "^xterm") " enable colors on any xterm
" force colors on anything that looks reasonable
if (&term =~ "^xterm") || (&term == "screen")
let &t_Co=256
"let &t_AF="\e[38;5;%dm"
"let &t_AB="\e[48;5;%dm"

View File

@ -119,6 +119,8 @@ bindkey ';3B' dirview # alt+down
#bindkey -s ';3A' ' ^Ucd ..^M^Y^H' # alt+up
bindkey -s '^[s' '^Asudo ^E' # alt+s
bindkey -s '^[[6;2~' '\a' # shift+PgDn, do nothing, already at bottom (tmux)
autoload edit-command-line
zle -N edit-command-line # new widget of the same function name
bindkey '^Xe' edit-command-line # ctrl+x -> e