diff --git a/plugin/settings.vim b/plugin/settings.vim index 4c193cd..4457097 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -118,18 +118,12 @@ set lazyredraw " Change cursor dependant on current mode if has('cursorshape') && has('unix') && !has('gui_running') - if $ITERM_SESSION_ID !=# '' + if $ITERM_PROFILE !=# '' let &t_SI = "\]50;CursorShape=1\x7" let &t_SR = "\]50;CursorShape=2\x7" - let &t_EI = "\]50;CursorShape=0\x7" else let &t_SI = "\[6 q" let &t_SR = "\[4 q" - let &t_EI = "\[2 q" - endif - if $TMUX !=# '' - let &t_SI = "\Ptmux;\".&t_SI."\\\" - let &t_SR = "\Ptmux;\".&t_SR."\\\" - let &t_EI = "\Ptmux;\".&t_EI."\\\" endif + let &t_EI = &t_SI endif