Wednesday, September 29, 2010

Re: Close Tab with middle mouse click ---- Zoom in - out

On 9/28/2010 6:16 AM, rameo wrote:
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? 
I use the "Mapping Solution" section under:
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: