Skip to content
Browse files

Create and option to enable/disable custom cursors.

  • Loading branch information...
1 parent d421767 commit 369b1973b1496a4d889f30590625c967f9a1e5e5 @jvortmann committed Feb 22, 2013
Showing with 17 additions and 5 deletions.
  1. +2 −0 conf/defaults
  2. +15 −5 conf/guioptions
View
2 conf/defaults
@@ -49,3 +49,5 @@ set splitbelow
set splitright
" add gem.tags to the list of tag files to look for
set tags+=gem.tags
+" enable custom color for cursors besides coloscheme
+let g:use_custom_cursors = 1
View
20 conf/guioptions
@@ -22,11 +22,21 @@ if (has("gui_running"))
highlight SpellBad term=underline gui=undercurl guisp=Orange
- " Different cursors for different modes.
- set guicursor=n-c:block-Cursor-blinkon0
- set guicursor+=v:block-vCursor-blinkon0
- set guicursor+=i-ci:ver20-iCursor
- set guicursor+=r-cr:hor20-rCursor
+ if g:use_custom_cursors
+ " Cursor color for diferent {{{
+ hi Cursor guifg=#000000 guibg=#AAF412
+ hi iCursor guifg=#000000 guibg=#66D9EF
+ hi vCursor guifg=#000000 guibg=#FD971F
+ hi rCursor guifg=#000000 guibg=#D80000
+ " }}}
+
+ " Different cursors for different modes.
+ set guicursor=n-c:block-Cursor-blinkon0
+ set guicursor+=v:block-vCursor-blinkon0
+ set guicursor+=i-ci:ver20-iCursor
+ set guicursor+=r-cr:hor20-rCursor
+ endif
+
function! s:initialize_font()
if exists("&guifont")
if has("mac")

0 comments on commit 369b197

Please sign in to comment.
Something went wrong with that request. Please try again.