Support changing cursor shape for iTerm2 in tmux

This commit is contained in:
Kenneth Benzie 2018-01-02 16:23:18 +00:00
parent ec0ad0ae00
commit 0416a42e08

View File

@ -118,7 +118,7 @@ set lazyredraw
" Change cursor dependant on current mode " Change cursor dependant on current mode
if has('cursorshape') && has('unix') && !has('gui_running') if has('cursorshape') && has('unix') && !has('gui_running')
if $ITERM_PROFILE !=# '' if $TMUX ==# '' && $ITERM_PROFILE !=# ''
let &t_SI = "\<Esc>]50;CursorShape=1\x7" let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7" let &t_EI = "\<Esc>]50;CursorShape=0\x7"
else else