From d8ad04297bbc439d3310c06041e3645fe3f49b89 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 6 Dec 2017 11:08:01 +0000 Subject: [PATCH] Use tmux terminal-override for cursor shape on VTE --- plugin/settings.vim | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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