Skip to content
A nautilus python extension which adds several menu items to nautilus for gvim
Python Shell
Branch: master
Clone or download

Latest commit

Latest commit 880df90 Jun 13, 2014


Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig Add .editorconfig file Jun 12, 2014
COPYING Add license. Jun 13, 2014 Update README Jun 13, 2014
example.conf Add some information to the head of example.conf Jun 6, 2011 Use NautilusEditWithVim instead of NautilusVim. Jun 13, 2014



Nautilus-Edit-with-Vim is an extension for Nautilus, the GNOME file manager, written in python. This extension adds several menu items in the nautilus right-click context menu for gvim, just like gVim on Windows. This version of the extension works on Nautilus 3.

NOTE: If you are using Nautilus 2, please use the nautilus-2 branch.


To install this extension, first make sure that you have installed the nautilus python extension:

$ # On Fedora
$ sudo yum install nautilus-python

$ # On Debian/Ubuntu
$ sudo apt-get install python-nautilus

If you want to enable the "Edit with gVim as Root" menu item, you should install gksu, beesu or kdesu:

$ # On Fedora:
$ sudo yum install beesu

$ # On Debian/Ubuntu
$ sudo apt-get install gksu

After that, run the following command to install in user directory:

curl -L >~/.local/share/nautilus-python/extensions/

Or to install system-widely:

sudo curl -L >$XDG_DATA_DIR/share/nautilus-python/extensions/

Then restart nautilus(execute "nautilus -q") and try to right click on the file(s) you want to edit, you will see the changes in the context menu("Edit with gVim" when only one file is selected, and "Diff with gVim", "Edit with Multi gVim", "Edit with a Single gVim" are present when several files are selected), just like what it is like on Windows.


To configure the extension, you could write a config file. Nautilus-Edit-with-Vim will search for the config file in the order of the following files:

  • ~/.nautilus-edit-with-vim.conf
  • ~/.nautilus/nautilus-edit-with-vim.conf
  • /etc/nautilus-edit-with-vim.conf

For the content of the config file, you could take a look at the example.conf.

If none of the configuration files are found, Nautilus-Edit-with-Vim will use default values.


Remove user's local installation:

rm ~/.local/share/nautilus-python/extensions/

Remove a system-wide installation:

rm $XDG_DATA_DIR/share/nautilus-python/extensions/
You can’t perform that action at this time.