-
Notifications
You must be signed in to change notification settings - Fork 8
/
.gvimrc
50 lines (41 loc) · 998 Bytes
/
.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
set lines=999 lines=999
" Basic setting
set visualbell
" Enable clipboard
set guioptions+=a
" Disable menubar
set guioptions-=m
" Disable toolbar
set guioptions-=T
" Disable scroll bars
set guioptions-=r
set guioptions-=R
set guioptions-=l
set guioptions-=L
set guioptions-=b
set guiheadroom=100
let s:font = 'Hack'
let s:fnt_size = 13
if has('win16') || has('win32') || has('win64')
" Windows
elseif has('mac')
" Mac
exe ':set guifont=' . s:font . '\ h' . string(s:fnt_size)
else
" linux
exe ':set guifont=' . s:font . '\ ' . string(s:fnt_size)
endif
function! ResetFont ()
exe ':set guifont=' . s:font . '\ ' . string(s:fnt_size)
endfunction
function! FontSizePlus ()
let s:fnt_size = s:fnt_size + 1
call ResetFont()
endfunction
function! FontSizeMinus ()
let s:fnt_size = s:fnt_size - 1
call ResetFont()
endfunction
nnoremap <Space>+ :call FontSizePlus()<CR>
nnoremap <Space>= :call FontSizePlus()<CR>
nnoremap <Space>- :call FontSizeMinus()<CR>