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.

Reply via email to