Add Vim to Unity launcher?

5,117

Solution 1

Create Launcher for Terminal Application

Right click on the desktop and select Create Launcher from the menu:

enter image description here

Choose Application in Terminal and give the desired name and command to run (in this case vim).

Then simply drag and drop this icon on the Unity Launcher:

enter image description here

Solution 2

If you are still looking to set the icon, you can do that during 'Create Launcher' by clicking the default icon (the springboard) and selecting an image file from somewhere in the file system. If you've already created it (on the desktop), in the 'Properties' of the context menu you can still change the icon by again clicking on the default one.

I used this file, which I found by doing: locate vim|grep svg

/usr/share/app-install/icons/_usr_share_pixmaps_vim.svg

Solution 3

Go to terminal and type sudo apt-get install vim-gui-common. After installing reboot computer. Icon must be in Standard applications.

Share:
5,117

Related videos on Youtube

Mubbasher Khaliq
Author by

Mubbasher Khaliq

code. refactor. expunge. repeat.

Updated on September 18, 2022

Comments

  • Mubbasher Khaliq
    Mubbasher Khaliq about 1 year

    Please can someone explain how to add a launcher icon in Unity (along the left side) for Vim - or any other terminal-based application?

    I press alt+f2, type vim, and drag the icon to the left ... but the launcher does not accept the dragged item.

    Assuming that to launch vim in a terminal I should launch gnome-terminal -e vim, my question is how do I get this command as a button in the Unity launcher?

  • Mubbasher Khaliq
    Mubbasher Khaliq over 12 years
    what do I do with that? How do I get it on the launcher?
  • Jayden Smith
    Jayden Smith over 12 years
    Yeah, it doesn't work apparently :/
  • Mubbasher Khaliq
    Mubbasher Khaliq over 12 years
    It seems that the icon is always the terminal icon, is there a way to change it to the standard Vim icon?
  • Takkat
    Takkat over 12 years
    @Greg: for now I have not yet found a way to use another icon (edited my answer).
  • dv3500ea
    dv3500ea over 12 years
    @Greg you can choose an icon by clicking the button with the bouncy launcher icon on it. A file dialog will open asking you to choose the image.
  • Takkat
    Takkat over 12 years
    @dv3500ea: we do know that - this fixes the icon on the desktop but still on the Unity Launcher the bouncy icon keeps to be displayed. Replace Unity, reboot, change localization of .desktop file, using a different (svg) icon does not help. Unity Launcher seems to remember that this was a custom launcher and refuses to use another icon. :(
  • dv3500ea
    dv3500ea over 12 years
    That's strange, it works for me. You should probably file a bug about this.
  • user941105
    user941105 over 12 years
    For gvim: install vim-gnome and search for gvim. Gvim's improved colour, font, and cursor shape support make it worth it!