Add Vim to Unity launcher?
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?
Solution 1:
Create Launcher for Terminal Application
Right click on the desktop and select Create Launcher from the menu:
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:
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.