2012/5/18 John Little <[email protected]> > On Friday, May 18, 2012 6:10:37 AM UTC+12, [email protected] wrote: > > Is there any way to know if the main vim menu has been loaded in a vim > session. > > I mean when you start vim on a terminal not gvim. > > If you mean $VIMRUNTIME/menu.vim, it sets did_install_default_menus when > it runs. So you can have > > if !exists("did_install_default_menus") > > (A quick look at menu.vim would have told you this. Most scripts, I > suppose, do this near their beginning so it's worth inspecting the first > few lines.) > Yep sorry, I realised it after sending my last email . I should took a look at the script before looking into more sophisticated solutions :) Thanks
> > Regards, John > > -- > 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 > -- Un saludo Best Regards Pablo Giménez -- 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
