I use the "Mapping Solution" section under:2) In Firefox, Chrome and other applications I use the Ctrl-scroll-up to zoom in text and Ctrl-scroll-down to zoom out text. Is that possible in vim (gvim) also?
http://vim.wikia.com/wiki/VimTip760
I use CTRL-Up and CTRL_Down (on Windows) to do this the same way that FireFox does CTRL+ and CTRL-.
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>
HTH,
Dave
No comments:
Post a Comment