Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

vi keybindings for gtk2 TextView & Entry

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README
gtk-vikb
--------
This is an attempt to add vi keybindings to gtk text areas,
GtkTextView and GtkEntry.

The project was started 16 Jul 2012, so don't expect a lot
to work.

Building
--------
libgtk2.0-dev or equivalent is required for successful building

    $ gcc -shared -fPIC `pkg-config gtk+-x11-2.0 --cflags --libs` -o libvi.so vi.c

or

    $ make

To try it out
-------------
GTK_MODULES=<path-to-libvi.so> [your-application]

For permanent use
-----------------
1) install module somewhere

	mkdir -p .gtk-2.0/modules
	cp libvi.so ~/.gtk-2.0/modules/

2) add this to startup script (~/.xinitrc or whatever)

	export GTK_PATH=$HOME/.gtk-2.0/modules
	export GTK_MODULES=vi
Something went wrong with that request. Please try again.