1
0
Fork 0

rewrite the test for vim as well as add fading to urxvt since I happen to start entering text in the wrong terminal quite often

This commit is contained in:
Von Random 2015-07-01 00:21:17 +03:00
parent d46d711c08
commit 8f3c618b32
2 changed files with 9 additions and 8 deletions

11
vimrc
View file

@ -24,14 +24,15 @@ set noerrorbells visualbell t_vb=
" 256 colours at almost all times as well as cursor shape changes " 256 colours at almost all times as well as cursor shape changes
" Relies on tmux, fails spectacularly with screen! " Relies on tmux, fails spectacularly with screen!
if $TERM =~ '^[xterm|rxvt-unicode]' if $TERM =~ '^[xterm|rxvt-unicode|screen]'
let &t_Co=256
let &t_SI .= "\<Esc>[6 q"
let &t_EI .= "\<Esc>[4 q"
elseif $TERM =~ '^screen'
let &t_Co=256 let &t_Co=256
if $TERM =~ '^screen'
let &t_SI = "\<Esc>Ptmux;\<Esc>\e[6 q\<Esc>\\" let &t_SI = "\<Esc>Ptmux;\<Esc>\e[6 q\<Esc>\\"
let &t_EI = "\<Esc>Ptmux;\<Esc>\e[4 q\<Esc>\\" let &t_EI = "\<Esc>Ptmux;\<Esc>\e[4 q\<Esc>\\"
else
let &t_SI .= "\<Esc>[6 q"
let &t_EI .= "\<Esc>[4 q"
endif
endif endif
if $LANG =~ '[UTF\-8|utf8]$' if $LANG =~ '[UTF\-8|utf8]$'
set termencoding=utf-8 set termencoding=utf-8

View file

@ -22,7 +22,7 @@ URxvt.urgentOnBell: true
URxvt.cursorUnderline: true URxvt.cursorUnderline: true
URxvt.termName: rxvt-unicode-256color URxvt.termName: rxvt-unicode-256color
URxvt.internalBorder: 0 URxvt.internalBorder: 0
URxvt.fading: 0 URxvt.fading: 33
URxvt.depth: 32 URxvt.depth: 32
! urxvt perl extensions ! urxvt perl extensions