Wikia

Vim Tips Wiki

Open a file in Linux Mint Cinnamon via a menu action

Talk0
1,612pages on
this wiki

Proposed tip Please edit this page to improve it, or add your comments below (do not use the discussion page).

Please use new tips to discuss whether this page should be a permanent tip, or whether it should be merged to an existing tip.
created January 28, 2014 · complexity basic · author Ajabu Tex · version 7.0

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 fileEdit

Create the file

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

The name of the file is not important, however, the extension must be nemo_action.

Step two: edit the menu-action fileEdit

Now open the file vim.nemo_action with your preferred text editor and enter 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;

SeeEdit

CommentsEdit

Around Wikia's network

Random Wiki