ginit.vim 389 B

1234567891011
  1. let s:fontsize = 12
  2. function! AdjustFontSize(amount)
  3. let s:fontsize = s:fontsize+a:amount
  4. :execute "GuiFont! Monospace:h" . s:fontsize
  5. endfunction
  6. noremap <C-ScrollWheelUp> :call AdjustFontSize(1)<CR>
  7. noremap <C-ScrollWheelDown> :call AdjustFontSize(-1)<CR>
  8. inoremap <C-ScrollWheelUp> <Esc>:call AdjustFontSize(1)<CR>a
  9. inoremap <C-ScrollWheelDown> <Esc>:call AdjustFontSize(-1)<CR>a