Cursor shape in tmux/terminal

This commit is contained in:
Mahesh Asolkar 2019-11-10 22:17:16 -08:00
parent 8f02d25ab0
commit 4b14f3f50a

View File

@ -165,6 +165,13 @@
silent execute '!mkdir -p $HOME/.vimviews'
au BufWinLeave \* silent! mkview "make vim save view (state) (fds, cursor, etc)
au BufWinEnter \* silent! loadview "make vim load view (state) (fds, cursor, etc)
if exists('$TMUX')
let &t_SI = "\<Esc>Ptmux;\<Esc>\e[5 q\<Esc>\\"
let &t_EI = "\<Esc>Ptmux;\<Esc>\e[2 q\<Esc>\\"
else
let &t_SI = "\e[5 q"
let &t_EI = "\e[2 q"
endif
" }}}
" }}}