Skip to content

Instantly share code, notes, and snippets.

@qstrahl
Created November 21, 2014 16:38
Show Gist options
  • Save qstrahl/dad7d4ff52b3dd84ee3a to your computer and use it in GitHub Desktop.
Save qstrahl/dad7d4ff52b3dd84ee3a to your computer and use it in GitHub Desktop.
Default-shape-agnostic cursor change for gnome-terminal and vim
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