Created
November 21, 2014 16:38
-
-
Save qstrahl/dad7d4ff52b3dd84ee3a to your computer and use it in GitHub Desktop.
Default-shape-agnostic cursor change for gnome-terminal and vim
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
silent! let s:default_cursor = system('gconftool-2 --get /apps/gnome-terminal/profiles/Default/cursor_shape') | |
augroup GnomeTerminalCursor | |
au! | |
au InsertEnter * silent! execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam" | |
au InsertLeave,VimLeave * silent! execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape" s:default_cursor | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment