From 40a45bfefd8dd2a8bfc0de0edd4aefb444e481f4 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 23 Mar 2021 19:37:38 +0100 Subject: [PATCH] vimrc: thic cursor pls --- .vim/vimrc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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"