let s:fontsize = 12 function! AdjustFontSize(amount) let s:fontsize = s:fontsize+a:amount :execute "GuiFont! Monospace:h" . s:fontsize endfunction noremap :call AdjustFontSize(1) noremap :call AdjustFontSize(-1) inoremap :call AdjustFontSize(1)a inoremap :call AdjustFontSize(-1)a