Again on gvim menu disappeared
Some time ago I posted a note on this topic. I received many kind answers but the problem was not solved. I just received a suggestion by G. Laurent, and it did the trick: rm .gnome2/Vim That's all! A simple interference of parameters. This file has some info on position and menu, such as Dock=Toolbar\\0,1,0,0\\Menubar\\0,0,0,0 and it did interfer. I just posted this mail because it may be useful to others in the future. Many thanks! gm --- Guido Milanese http://docenti.unicatt.it/milanese_guido http://www.arsantiqua.org
Re: Reply: RI: Re: gvim: menu disappeared
Guido Milanese wrote: On Wednesday 18 April 2007 14:26, A.J.Mechelynck wrote: Start vim as root: :echo $VIMRUNTIME :echo has("menu") :scriptnames :view ~/.vimrc Then do the same as non-root and compare the results. Apparently, the result is the same, both for root and for non-root. I have already done a complete re-installation, but to no success... really puzzling! Thanks again for your attention, g -- Guido Milanese http://www.arsantiqua.org Does the non-root installation show $VIMRUNTIME/menu.vim (or the equivalent) in the output of ":scriptnames"? If it does, then something must be removing the menubar after the menu has been set: ":verbose set guioptions?" (without the quotes) ought to tell you what. Best regards, Tony. -- hundred-and-one symptoms of being an internet addict: 176. You lie, even to user-friends, about how long you were online yesterday.
Re: gvim: menu disappeared
On Monday 16 April 2007 03:18, [EMAIL PROTECTED] wrote: > Will the :se go+=g > show your menu? Thanks a lot. No success! g --- Guido Milanese http://www.arsantiqua.org
Re: Reply: RI: Re: gvim: menu disappeared
[EMAIL PROTECTED] wrote: Thanks a lot for your suggestions. It should be all right, following your advice. But it does not work! Surprise: I tried to call gvim as root and the menu works as usual; as 'normal user' it does not. Strange, because the .vimrc file is the same both for root and for user. Which other files should i check to fix this annoyng problem? Needless to say, I deleted also the 'history' file. Thanks again, gm Start vim as root: :echo $VIMRUNTIME :echo has("menu") :scriptnames :view ~/.vimrc Then do the same as non-root and compare the results. Best regards, Tony. -- (to "The Caissons Go Rolling Along") Scratch the disks, dump the core, Shut it down, pull the plug Roll the tapes across the floor,Give the core an extra tug And the system is going to crash. And the system is going to crash. Teletypes smashed to bits. Mem'ry cards, one and all, Give the scopes some nasty hits Toss out halfway down the hall And the system is going to crash. And the system is going to crash. And we've also foundJust flip one switch When you turn the power down, And the lights will cease to twitch You turn the disk readers into trash. And the tape drives will crumble in a flash. Oh, it's so much fun, When the CPU Now the CPU won't run Can print nothing out but "foo," And the system is going to crash. The system is going to crash.
Re: gvim: menu disappeared
Guido Milanese wrote: I am sorry to ask such a stupid question, but I'm really puzzled. I have been using vim for ages now, and for some tasks, not always, I prefer a GUI. I use a Mandriva Linux distribution and it's all right. Suddendly the menu bar (not the toolbar with icons, the menu bar with texts: File, Edit, and so on) disappeared. I tried several options of the "set guioptions" command, but to no success. I also deleted the .vimrc file, but again no change. Then, installed vim-X11 again, but nothing happened. May I ask your kind help? Thank you! guido, from Italy Guido Milanese http://www.arsantiqua.org Hypothesis 1: You are actually telling Vim not to display a menu. How to check: In this case, ":verbose set guioptions?" (without the quotes) will either not include the m flag, or it will include the M flag. It will also tell you where that option whas last changed. Solution: Make sure (in your vimrc) that 'guioptions' includes m but not M Hypothesis 2: Your Vim version is unable to display menus. How to check: ":echo has('menu')" (without the double quotes) answers 0 (zero). Solution: Avail yourself of a different Vim executable, or compile it yourself. Hypothesis 2a: You have installed a Vim version which is powerful enough, but you are not using it. How to check: (1) Same as hypothesis 2 above. (2) In the shell (e.g. in bash): which -a gvim ls -l `which gvim` should help you find out what to do: the first "gvim" listed by the first command above is the one which is invoked (you _are_ calling it by the name "gvim" aren't you?); the second command will give you more info about it, especially in the case of a soft link. The solution will depend on what you find out. Best regards, Tony. -- Have people realized that the purpose of the fortune cookie program is to defuse project tensions? When did you ever see a cheerful cookie, a non-cynical, or even an informative cookie? Perhaps inadvertently, we have a channel for our aggressions. This still begs the question of whether the cookie releases the pressure or only serves to blunt the warning signs. Long live the revolution! Have a nice day.
Re: gvim: menu disappeared
Guido Milanese <[EMAIL PROTECTED]> 写于 2007-04-16 05:08:14: > I am sorry to ask such a stupid question, but I'm really puzzled. > I have been using vim for ages now, and for some tasks, not always, > I prefer a > GUI. I use a Mandriva Linux distribution and it's all right. > Suddendly the menu bar (not the toolbar with icons, the menu bar with texts: > File, Edit, and so on) disappeared. I tried several options of the "set > guioptions" command, but to no success. I also deleted the .vimrc file, but > again no change. Then, installed vim-X11 again, but nothing happened. > > May I ask your kind help? > > Thank you! > guido, from Italy > > Will the :se go+=g show your menu? If not, then your menu may have some error and vim delete it while loading. -- Sincerely, Pan, Shi Zhu. ext: 2606
gvim: menu disappeared
I am sorry to ask such a stupid question, but I'm really puzzled. I have been using vim for ages now, and for some tasks, not always, I prefer a GUI. I use a Mandriva Linux distribution and it's all right. Suddendly the menu bar (not the toolbar with icons, the menu bar with texts: File, Edit, and so on) disappeared. I tried several options of the "set guioptions" command, but to no success. I also deleted the .vimrc file, but again no change. Then, installed vim-X11 again, but nothing happened. May I ask your kind help? Thank you! guido, from Italy Guido Milanese http://www.arsantiqua.org