Created
January 17, 2013 07:11
-
-
Save neocanable/4554278 to your computer and use it in GitHub Desktop.
vim-tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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