Tuesday, November 19, 2013

Re: toggle menu in gvim?

On Wed, November 20, 2013 06:18, Konovalov, Vadim wrote:
> I use following command to make menu appear:
> set go+=m
> and this one to make it disappear:
> set go-=m
>
> is there a way to toggle it?

:com ToggleMenu if &go=~'m'|set go-=m|else|set go+=m|endif


Best,
Christian

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: