https://github.com/xuhdev/nautilus-edit-with-vim
A nautilus python extension which adds several menu items to nautilus for gvim
https://github.com/xuhdev/nautilus-edit-with-vim
Last synced: 11 months ago
JSON representation
A nautilus python extension which adds several menu items to nautilus for gvim
- Host: GitHub
- URL: https://github.com/xuhdev/nautilus-edit-with-vim
- Owner: xuhdev
- License: gpl-3.0
- Created: 2011-06-01T02:22:50.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2015-06-14T21:32:31.000Z (about 11 years ago)
- Last Synced: 2025-03-25T04:32:38.016Z (over 1 year ago)
- Language: Python
- Homepage: http://nautilusvim.topbug.net
- Size: 576 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Nautilus-Edit-with-Vim
## Overview
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][].
## Install
To install this extension, first make sure that you have installed the
[nautilus python extension](http://projects.gnome.org/nautilus-python):
$ # 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](http://www.nongnu.org/gksu),
[beesu](http://honeybeenet.altervista.org/beesu) or
[kdesu](http://techbase.kde.org/Projects/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 http://github.com/xuhdev/nautilus-edit-with-vim/raw/master/nautilus-edit-with-vim.py >~/.local/share/nautilus-python/extensions/nautilus-edit-with-vim.py
Or to install system-widely:
sudo curl -L http://github.com/xuhdev/nautilus-edit-with-vim/raw/master/nautilus-edit-with-vim.py >$XDG_DATA_DIR/share/nautilus-python/extensions/nautilus-edit-with-vim.py
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.
## Configuration
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.
## Uninstall
Remove user's local installation:
rm ~/.local/share/nautilus-python/extensions/nautilus-edit-with-vim.py
Remove a system-wide installation:
rm $XDG_DATA_DIR/share/nautilus-python/extensions/nautilus-edit-with-vim.py
[example.conf]: http://github.com/xuhdev/nautilus-edit-with-vim/blob/master/example.conf
[nautilus-2 branch]: http://github.com/xuhdev/nautilus-edit-with-vim/tree/nautilus-2