forked from vEnhance/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgvimrc
38 lines (32 loc) · 1.01 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
set encoding=utf-8
set guifont=Inconsolata\ Semi-Condensed\ Semi-Bold\ 22
if hostname() ==# 'ArchScythe'
let s:basefontsize = 16
elseif hostname() ==# 'ArchDiamond'
let s:basefontsize = 18
elseif hostname() ==# 'ArchMajestic'
let s:basefontsize = 20
elseif hostname() ==# 'ArchBootes'
let s:basefontsize = 18
elseif hostname() ==# 'ArchSapphire'
let s:basefontsize = 18
else
let s:basefontsize = 22
endif
let s:fontsize = s:basefontsize
function! AdjustFontSize(amount)
let s:fontsize = s:fontsize+a:amount
execute 'set guifont=Inconsolata\ Semi-Condensed\ Semi-Bold\ ' . s:fontsize
endfunction
function! ResetFontSize()
let s:fontsize = s:basefontsize
call AdjustFontSize(0)
endfunction
call AdjustFontSize(0)
nnoremap <C-0> :call ResetFontSize()<CR>
nnoremap <C-S-+> :call AdjustFontSize(1)<CR>
nnoremap :call AdjustFontSize(-1)<CR>
nnoremap <C-ScrollWheelUp> :call AdjustFontSize(1)<CR>
nnoremap <C-ScrollWheelDown> :call AdjustFontSize(-1)<CR>
set guioptions-=T "remove toolbar
colorscheme reclipse