We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b48e79 commit 875b55cCopy full SHA for 875b55c
.gvimrc
@@ -1,6 +1,6 @@
1
" GVim Settings {{{
2
" maybe i'll relocate it to .gvimrc later
3
- set novisualbell
+ set novisualbell
4
set t_vb=
5
set guioptions=Aci
6
map <F3> <Esc>:set guifont=*<CR>
@@ -14,6 +14,26 @@
14
endif
15
" }}}
16
17
+ function! EnlargeFont()
18
+ let l:font=split( &guifont )
19
+ let l:font[-1] = l:font[-1] + 1
20
+ let &guifont=join( l:font, ' ' )
21
+ endfunction
22
+
23
+ function! ShrinkFont()
24
25
+ if l:font[-1] > 2
26
+ let l:font[-1] = l:font[-1] - 1
27
28
+ endif
29
30
31
+ inoremap <C-kPlus> <ESC>:call EnlargeFont()<CR>i
32
+ nnoremap <C-kPlus> :call EnlargeFont()<CR>
33
34
+ inoremap <C-kMinus> <ESC>:call ShrinkFont()<CR>i
35
+ nnoremap <C-kMinus> :call ShrinkFont()<CR>
36
37
38
39
0 commit comments