From 8f3c618b320dec3683a9b8fe8229b43f9010600f Mon Sep 17 00:00:00 2001 From: Von Random Date: Wed, 1 Jul 2015 00:21:17 +0300 Subject: [PATCH] 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 --- vimrc | 15 ++++++++------- xresources | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/vimrc b/vimrc index 4ed9913..9db91d1 100644 --- a/vimrc +++ b/vimrc @@ -24,14 +24,15 @@ set noerrorbells visualbell t_vb= " 256 colours at almost all times as well as cursor shape changes " 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 .= "\[6 q" - let &t_EI .= "\[4 q" -elseif $TERM =~ '^screen' - let &t_Co=256 - let &t_SI = "\Ptmux;\\e[6 q\\\" - let &t_EI = "\Ptmux;\\e[4 q\\\" + if $TERM =~ '^screen' + let &t_SI = "\Ptmux;\\e[6 q\\\" + let &t_EI = "\Ptmux;\\e[4 q\\\" + else + let &t_SI .= "\[6 q" + let &t_EI .= "\[4 q" + endif endif if $LANG =~ '[UTF\-8|utf8]$' set termencoding=utf-8 diff --git a/xresources b/xresources index cc4fc27..15b007c 100644 --- a/xresources +++ b/xresources @@ -22,7 +22,7 @@ URxvt.urgentOnBell: true URxvt.cursorUnderline: true URxvt.termName: rxvt-unicode-256color URxvt.internalBorder: 0 -URxvt.fading: 0 +URxvt.fading: 33 URxvt.depth: 32 ! urxvt perl extensions