1
0
Fork 0

yes, this will do

This commit is contained in:
Von Random 2015-09-03 19:19:10 +03:00
parent ef691a32da
commit a521012dec

19
vimrc
View file

@ -22,17 +22,9 @@ set sidescroll=1
" disable bell " disable bell
set noerrorbells visualbell t_vb= set noerrorbells visualbell t_vb=
" 256 colours at almost all times as well as cursor shape changes " 256 colours at almost all times
" Relies on tmux, fails spectacularly with screen!
if $TERM =~ '^[xterm|rxvt-unicode|screen]' if $TERM =~ '^[xterm|rxvt-unicode|screen]'
let &t_Co=256 let &t_Co=256
if $TERM =~ '^screen' && v:version >= 700
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 endif
if $LANG =~ '[UTF\-8|utf8]$' if $LANG =~ '[UTF\-8|utf8]$'
set termencoding=utf-8 set termencoding=utf-8
@ -74,6 +66,15 @@ if v:version >= 700
nnoremap <Leader>n :setlocal number!<CR> nnoremap <Leader>n :setlocal number!<CR>
nnoremap <Leader>l :setlocal list!<CR> nnoremap <Leader>l :setlocal list!<CR>
" Cursor shape changes relies on tmux, fails spectacularly with screen!
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
" enable case indentation " enable case indentation
let g:sh_indent_case_labels=1 let g:sh_indent_case_labels=1