Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Ubuntu 12.04 with gnome-shell and I would like to have gVim in the favorites bar.

How can I put it there? I can't find it under applications but it is installed.

share|improve this question
I think this bug is related: – franzlorenzon Dec 13 '12 at 9:46
up vote 6 down vote accepted

Make a file called ~/.local/share/applications/gvim.desktop and copy the following into it:

[Desktop Entry]
GenericName=Text Editor
Comment=Edit text files
Exec=gvim %U

It should now be in the applications list and you can add it to the favorites bar like any other application.

share|improve this answer
thanks a lot. it works. – user1535814 Aug 10 '12 at 1:15
Should I reboot the session to make it work? – franzlorenzon Dec 13 '12 at 9:35
Yes, I had to terminate the session (it works). Take note that the icon image didn't work on my Ubuntu 12.04. After searching a bit I found a solution: Icon=/usr/share/app-install/icons/vim.png. Now I have the icon too :) – franzlorenzon Dec 13 '12 at 9:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.