Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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: bugs.launchpad.net/ubuntu/+source/vim/+bug/13409 –  franzlorenzon Dec 13 '12 at 9:46

1 Answer 1

up vote 4 down vote accepted

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

[Desktop Entry]
Name=gvim
GenericName=Text Editor
Comment=Edit text files
Keywords=Plaintext;Write;
Exec=gvim %U
Terminal=false
Type=Application
MimeType=text/plain;
Icon=gvim
Categories=Utility;TextEditor;

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
1  
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
1  
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

 
discard

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.