mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
add tmux hacks
This commit is contained in:
parent
5846da2bd7
commit
1e840bf1be
2 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,8 @@ try | call mkdir(&backupdir, "p") | catch /E739/ | endtry
|
||||||
try | call mkdir(&directory, "p") | catch /E739/ | endtry
|
try | call mkdir(&directory, "p") | catch /E739/ | endtry
|
||||||
try | call mkdir(&undodir, "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_Co=256
|
||||||
"let &t_AF="\e[38;5;%dm"
|
"let &t_AF="\e[38;5;%dm"
|
||||||
"let &t_AB="\e[48;5;%dm"
|
"let &t_AB="\e[48;5;%dm"
|
||||||
|
|
|
@ -119,6 +119,8 @@ bindkey ';3B' dirview # alt+down
|
||||||
#bindkey -s ';3A' ' ^Ucd ..^M^Y^H' # alt+up
|
#bindkey -s ';3A' ' ^Ucd ..^M^Y^H' # alt+up
|
||||||
bindkey -s '^[s' '^Asudo ^E' # alt+s
|
bindkey -s '^[s' '^Asudo ^E' # alt+s
|
||||||
|
|
||||||
|
bindkey -s '^[[6;2~' '\a' # shift+PgDn, do nothing, already at bottom (tmux)
|
||||||
|
|
||||||
autoload edit-command-line
|
autoload edit-command-line
|
||||||
zle -N edit-command-line # new widget of the same function name
|
zle -N edit-command-line # new widget of the same function name
|
||||||
bindkey '^Xe' edit-command-line # ctrl+x -> e
|
bindkey '^Xe' edit-command-line # ctrl+x -> e
|
||||||
|
|
Loading…
Add table
Reference in a new issue