Skip to content

Instantly share code, notes, and snippets.

@neocanable
Created January 17, 2013 07:11
Show Gist options
  • Save neocanable/4554278 to your computer and use it in GitHub Desktop.
Save neocanable/4554278 to your computer and use it in GitHub Desktop.
vim-tips
#
# control font-size with ctrl-up and ctrl-down
#
nnoremap <C-UP> :silent! let &guifont = substitute(
\ &guifont,
\ ':h\zs\d\+',
\ '\=eval(submatch(0)+1)',
\ '')<CR>
nnoremap <C-Down> :silent! let &guifont = substitute(
\ &guifont,
\ ':h\zs\d\+',
\ '\=eval(submatch(0)-1)',
\ '')<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment