yes, this will do
This commit is contained in:
parent
ef691a32da
commit
a521012dec
1 changed files with 10 additions and 9 deletions
19
vimrc
19
vimrc
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue