Vim Tips Wiki
No edit summary
Line 6: Line 6:
 
|complexity=basic
 
|complexity=basic
 
|author=Ajabu Tex
 
|author=Ajabu Tex
|version=
+
|version=0.1
 
|rating=
 
|rating=
 
|category1=Integration with operating system
 
|category1=Integration with operating system

Revision as of 11:32, 28 January 2014

Tip Printable Monobook Next

created 2014 · complexity basic · author Ajabu Tex · version 0.1


You can open a file in Linux Mint Cinnamon (and in its file-manager Nemo) just by right-clicking on the file icon and choosing the "Open with Vim" menu item.

(This tip refers to Linux Mint 16 Petra Cinnamon).

Step one: create the menu-action file

Create the file

   ~/.local/share/nemo/actions/vim.nemo_action

The name of the file is not important. Is very important the extension, that has to be nemo_action.

Step two: edit the menu-action file

Now open the file vim.nemo_action with your preferred text editor and write down the following lines:

[Nemo Action]
Active=true
Name=Open with Vim
Comment=Open %N with Vim in a terminal
Exec=gnome-terminal --geometry=80x49 --working-directory=%P -e "vim %F"
Icon-Name=vim
Selection=s
Extensions=nodirs;
Dependencies=vim;

To know more

The full syntax of the Nemo actions is on a github repo