Created
June 29, 2011 18:20
-
-
Save datanoise/1054495 to your computer and use it in GitHub Desktop.
Change cursor type in VIM based on the current mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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