Skip to content

Instantly share code, notes, and snippets.

@datanoise
Created June 29, 2011 18:20
Show Gist options
  • Save datanoise/1054495 to your computer and use it in GitHub Desktop.
Save datanoise/1054495 to your computer and use it in GitHub Desktop.
Change cursor type in VIM based on the current mode
if !has('gui_running') && $TERM_PROGRAM == 'iTerm.app' && has('cursorshape')
let &t_SI = "\<Esc>]50;CursorShape=2\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment