Skip to content

Instantly share code, notes, and snippets.

@larryhynes
Created July 10, 2016 16:58
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 larryhynes/23fa41586cf8c9a2babea4b2fc726826 to your computer and use it in GitHub Desktop.
Save larryhynes/23fa41586cf8c9a2babea4b2fc726826 to your computer and use it in GitHub Desktop.
Change vim cursor for different modes
if &term == 'xterm-256color' || &term == 'screen-256color' || &term == 'rxvt-256color'
let &t_EI = "\<Esc>[1 q" " blinking block in normal/visual modes
let &t_SI = "\<Esc>[5 q" " blinking bar in insert mode
let &t_SR = "\<Esc>[3 q" " blinking underline in replace mode
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment