Fix vim cursor shape after tmux terminal-overrides

This commit is contained in:
Kenneth Benzie 2017-12-06 11:28:15 +00:00
parent d8ad04297b
commit eebe101050

View File

@ -120,10 +120,10 @@ set lazyredraw
if has('cursorshape') && has('unix') && !has('gui_running')
if $ITERM_PROFILE !=# ''
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_SR = "\<Esc>]50;CursorShape=2\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
else
let &t_SI = "\<Esc>[6 q"
let &t_SR = "\<Esc>[4 q"
let &t_EI = "\<Esc>[2 q"
endif
let &t_EI = &t_SI
let &t_SR = &t_SI
endif