vimrc: thic cursor pls

This commit is contained in:
surtur 2021-03-23 19:37:38 +01:00
parent bfebde7a58
commit 40a45bfefd
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -125,9 +125,17 @@ let g:syntastic_cpp_auto_refresh_includes = 1
let g:syntastic_c_cpplint_exec = 'cppcheck'
" change cursor shape for different editing modes, neovim does this by default
let &t_SI = "\<Esc>]6;green\x7"
if !has('nvim')
if exists('$TMUX')
let &t_SI = "\<Esc>Ptmux;\<Esc>\e[12 q\<Esc>\\"
let &t_SI = "\<Esc>Ptmux;\<Esc>\e[4 q\<Esc>\\"
let &t_SI = "\<Esc>Ptmux;\<Esc>\e[2 q\<Esc>\\"
else
let &t_SI = "\e[12 q"
let &t_SR = "\e[4 q"
let &t_EI = "\e[2 q"
endif
endif
" reset cursor when vim exits
autocmd VimLeave * silent !echo -ne "\033]112\007"