If you have installed Gvim (With GUI) on Ubuntu 12.04 Precise Pangolin, you may have noticed that Global Menu is disabled for this text editor. As you know, Globalmenu is a universal menu bar that appears for each program opened on the upper panel of Ubuntu.

In this tutorial, we will help you fix this bug and make the Globalmenu re-appears again on the top bar for Gvim. Here is the solution:

1. Open the terminal (Ctrl+Alt+T) and edit the .bashrc file with this command:

gedit .bashrc

2. At the end of the file add this piece of code:

# Restore Globalmenu
function gvim () { (/usr/bin/gvim -f "$@" &) }

3. Save your file and exit, then kill all running terminal windows. Start again the terminal and open Gvim with this command:


The Globalmenu will show up again.

That's it!

Post a Comment