Skip to content

Instantly share code, notes, and snippets.

@kizzx2
Created January 7, 2019 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kizzx2/7ddfb648389b907c583de7440ad126d0 to your computer and use it in GitHub Desktop.
Save kizzx2/7ddfb648389b907c583de7440ad126d0 to your computer and use it in GitHub Desktop.
call rpcnotify(1, 'Gui', 'Font', 'Fira Code 22')
let s:fontsize = 22
function! AdjustFontSize(amount)
let s:fontsize = s:fontsize+a:amount
call rpcnotify(1, 'Gui', 'Font', 'Fira Code ' . s:fontsize)
endfunction
noremap <c-+> :call AdjustFontSize(1)<CR>
noremap <c--> :call AdjustFontSize(-1)<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment