Skip to content

Instantly share code, notes, and snippets.

@lheckemann
Last active April 16, 2018 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lheckemann/b131a0ae88bfebc320124bd13f6d481d to your computer and use it in GitHub Desktop.
Save lheckemann/b131a0ae88bfebc320124bd13f6d481d to your computer and use it in GitHub Desktop.
get vim to set cursor shape
if exists("$TMUX")
" normal mode: default cursor
let &t_EI = "\<Esc>[0 q"
" insert mode: vertical line
let &t_SI = "\<Esc>[6 q"
" replace mode: underline
let &t_SR = "\<Esc>[3 q"
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment