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:
		
							parent
							
								
									d46d711c08
								
							
						
					
					
						commit
						8f3c618b32
					
				
					 2 changed files with 9 additions and 8 deletions
				
			
		
							
								
								
									
										15
									
								
								vimrc
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								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 .= "\<Esc>[6 q"
 | 
			
		||||
	let &t_EI .= "\<Esc>[4 q"
 | 
			
		||||
elseif $TERM =~ '^screen'
 | 
			
		||||
	let &t_Co=256
 | 
			
		||||
	let &t_SI = "\<Esc>Ptmux;\<Esc>\e[6 q\<Esc>\\"
 | 
			
		||||
	let &t_EI = "\<Esc>Ptmux;\<Esc>\e[4 q\<Esc>\\"
 | 
			
		||||
	if $TERM =~ '^screen'
 | 
			
		||||
		let &t_SI = "\<Esc>Ptmux;\<Esc>\e[6 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
 | 
			
		||||
if $LANG =~ '[UTF\-8|utf8]$'
 | 
			
		||||
	set termencoding=utf-8
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue