let s:fontsize = 10 function! AdjustFontSize(amount) let s:fontsize = s:fontsize+a:amount :execute "GuiFont! Hack:h" . s:fontsize endfunction noremap :call AdjustFontSize(1) noremap :call AdjustFontSize(-1) inoremap :call AdjustFontSize(1)a inoremap :call AdjustFontSize(-1)a " In normal mode, pressing numpad's+ increases the font noremap :call AdjustFontSize(1) noremap :call AdjustFontSize(-1) " In insert mode, pressing ctrl + numpad's+ increases the font inoremap :call AdjustFontSize(1)a inoremap :call AdjustFontSize(-1)a GuiFont! Hack:h10 set mouse=a