-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgvimrc
41 lines (35 loc) · 1.09 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
" Favorite Color Scheme
set background=dark
" Remove Toolbar
set guioptions=
" Set the normal font face and size.
function! FontNormal()
if has("gui_win32")
set guifont=Consolas:h11
else
set guifont=Terminus\ 14
endif
set lines=999 columns=999 " Maximize the window
endfunction
" Increase/decrease font size.
function! FontSmaller()
if has('win32') || has('win64')
let &guifont = substitute(&guifont, ':h\(\d\+\)', '\=":h" . (submatch(1) - 1)', '')
else
let &guifont = substitute(&guifont, ' \(\d\+\)', '\=" " . (submatch(1) - 1)', '')
endif
set lines=999 columns=999
endfunction
function! FontBigger()
if has('win32') || has('win64')
let &guifont = substitute(&guifont, ':h\(\d\+\)', '\=":h" . (submatch(1) + 1)', '')
else
let &guifont = substitute(&guifont, ' \(\d\+\)', '\=" " . (submatch(1) + 1)', '')
endif
endfunction
nnoremap <leader>0 :call FontNormal()<cr>
nnoremap <leader>- :call FontSmaller()<cr>
nnoremap <leader>_ :call FontSmaller()<cr>
nnoremap <leader>= :call FontBigger()<cr>
nnoremap <leader>+ :call FontBigger()<cr>
call FontNormal()