-
Notifications
You must be signed in to change notification settings - Fork 7
/
gvimrc.symlink
36 lines (35 loc) · 1.49 KB
/
gvimrc.symlink
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
set guicursor+=a:blinkwait1000-blinkon1300-blinkoff1300
if version >= 700 && &term != 'cygwin' && !has('gui_running')
" In the color terminal, try to use CSApprox.vim plugin or
" guicolorscheme.vim plugin if possible in order to have consistent
" colors on different terminals.
"
" Uncomment one of the following line to force 256 or 88 colors if
" your terminal supports it. Or comment both of them if your terminal
" supports neither 256 nor 88 colors. Unfortunately, querying the
" number of supported colors does not work on all terminals.
"set t_Co=256
if &t_Co == 256 || &t_Co == 88
" Check whether to use CSApprox.vim plugin or guicolorscheme.vim plugin.
if has('gui') &&
\ (filereadable(expand("$HOME/.vim/bundle/CSApprox/plugin/CSApprox.vim")) ||
\ filereadable(expand("$HOME/vimfiles/plugin/CSApprox.vim")))
let s:use_CSApprox = 1
elseif filereadable(expand("$HOME/.vim/plugin/guicolorscheme.vim")) ||
\ filereadable(expand("$HOME/vimfiles/plugin/guicolorscheme.vim"))
let s:use_guicolorscheme = 1
endif
endif
endif
if exists('s:use_CSApprox')
" Can use the CSApprox.vim plugin.
let g:CSApprox_attr_map = { 'bold' : 'bold', 'italic' : '', 'sp' : '' }
colorscheme my_desert
elseif exists('s:use_guicolorscheme')
" Can use the guicolorscheme plugin. It needs to be loaded before
" running GuiColorScheme (hence the :runtime! command).
runtime! plugin/guicolorscheme.vim
GuiColorScheme my_desert
else
colorscheme my_desert
endif