diff --git a/.vim/vimrc b/.vim/vimrc index 73c2fda..10be34f 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -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 = "\]6;green\x7" -let &t_SR = "\e[4 q" -let &t_EI = "\e[2 q" +if !has('nvim') + if exists('$TMUX') + let &t_SI = "\Ptmux;\\e[12 q\\\" + let &t_SI = "\Ptmux;\\e[4 q\\\" + let &t_SI = "\Ptmux;\\e[2 q\\\" + 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"