Wednesday, September 29, 2010

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

On Sep 28, 5:16 am, rameo <rai...@gmail.com> wrote:
> 1) I would like to close tabs clicking with the middle mouse on it, is
> that possible in vim?

You could make a mapping of the middle mouse button:

:nnoremap <MiddleMouse> :tabclose<CR>

But I'm not sure whether it is possible to detect whether the mouse
event happened on the tab page label or not.

The above mapping would remove the built-in "paste" function of a
middle-mouse click.

> 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 tried the plugin zoom.vim but it resizes my whole window and not
> only the fontsize.
>

This is not possible. Vim has no concept of "zoom", only font size,
which will as you discovered change the size of the entire GUI window.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: