-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgvimrc
64 lines (53 loc) · 1.88 KB
/
gvimrc
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
set runtimepath^=~/.vim/bundle/gruvbox/
colorscheme gruvbox
source ~/.vimrc
"let g:solarized_visibility="high" "default value is normal
"set bg=dark
"colorscheme solarized
"colorscheme molokai
" remove all guielements
set guioptions+=m
set guioptions-=T
set guioptions-=r
set guioptions-=R
function! EnterTexFile()
"set keywordprg=dict
set cul
endfunction
" set anti guifont=xos4\ Terminus\ 11,Envy\ Code\ R\ 10,Mono\ 12,Inconsolata\ 12
" set anti guifont=xos4\ Terminus\ 11,Envy\ Code\ R\ 10,Mono\ 12,Inconsolata\ 12
" set anti guifont=Inconsolata\ 12
" set anti guifont=
set guifont=Bitstream\ Vera\ Sans\ Mono\ 10
if has("unix")
function! FontSizePlus ()
let l:gf_size_whole = matchstr(&guifont, '\( \)\@<=\d\+$')
let l:gf_size_whole = l:gf_size_whole + 1
let l:new_font_size = ' '.l:gf_size_whole
let &guifont = substitute(&guifont, ' \d\+$', l:new_font_size, '')
endfunction
function! FontSizeMinus ()
let l:gf_size_whole = matchstr(&guifont, '\( \)\@<=\d\+$')
let l:gf_size_whole = l:gf_size_whole - 1
let l:new_font_size = ' '.l:gf_size_whole
let &guifont = substitute(&guifont, ' \d\+$', l:new_font_size, '')
endfunction
else
function! FontSizePlus ()
let l:gf_size_whole = matchstr(&guifont, '\(:h\)\@<=\d\+$')
let l:gf_size_whole = l:gf_size_whole + 1
let l:new_font_size = ':h'.l:gf_size_whole
let &guifont = substitute(&guifont, ':h\d\+$', l:new_font_size, '')
endfunction
function! FontSizeMinus ()
let l:gf_size_whole = matchstr(&guifont, '\(:h\)\@<=\d\+$')
let l:gf_size_whole = l:gf_size_whole - 1
let l:new_font_size = ':h'.l:gf_size_whole
let &guifont = substitute(&guifont, ':h\d\+$', l:new_font_size, '')
endfunction
endif
if has("gui_running")
" Ctrl-minus
nnoremap zo :call FontSizeMinus()<CR>
nnoremap zi :call FontSizePlus()<CR>
endif