Gvim menu bar missing
9 March 2009
I just opened gvim on my Ubuntu (Hardy Heron) box and found there was no menu bar (File, Edit, etc).
After messing with some guioptions and getting nowhere I ran gvim as root (using sudo) and the menu bar was there. The answer came from a forum post by “Marko”:
Delete the file ~/.gnome2/Vim
It will be recreated when you run gvim again. With luck, the menu will be displayed again.
:set guioptions+=m ” enables menubar
:set guioptions-=m ” disables menubar
Comment by Gonçalo Ferreira — 13 May 2009 @ 10:29 pm
The comment above will work if your menu is turned of within Vim.
The real issue for this post is due to a problem with Gnome trying to dock the menu somewhere you cannot see it.
Try turning the menu on in Vim. If that doesn’t work and you are using Gnome/Metacity, follow the directions in the post. They are correct.
Comment by Steve — 6 June 2009 @ 1:09 am
I had the same issue in Karmic with Vim 7.2.245, and the suggested fix ,namely:
rm ~/.gnome/Vim
rerun vim
worked for me. Thanks.
Comment by Nara — 20 December 2009 @ 8:38 pm
Saved me some hassle, thanks!
Comment by David T — 14 March 2010 @ 12:09 am