jugglerchris / textadept-vi

Customisation for the textadept editor to make it a bit more like vim.
MIT License
35 stars 5 forks source link

textadept-vi

Some customisation for textadept to make it feel a bit like vim. I like vim's keyboard handling but textadept's scriptability, so this is the solution. The aim is for my trained fingers to keep working, while (at least eventually) making good use of textadept's features.

It requires textadept 11.0.

I use this as my default editor, and it implements the common features of vi/vim that I used to use; there are many less common features I haven't implemented.

Usage

Note that the installations instructions have changed. Previously, the recommended location was directly in ~/.textadept, but textadept-vi now expects to be installed in _USERHOME/modules/

I suggest cloning textadept-vi into ~/.textadept/modules/, and setting it up with the following:

package.cpath = "/home/username/.textadept/modules/textadept-vi/?.so;" .. package.cpath
_G.vi_mode = require 'textadept-vi.vi_mode'

Textadept-vi also requires a recent version of the textredux module.

Support

For any questions, issues, requests or complaints, please use the issue tracker.

What works

What doesn't

Everything else, and some of the above. I mainly use the curses version under Linux (modified to support split views; see below).

Differences from vim (other than unimplemented features)

Dependencies

Besides Textadept (currently tested on 9.0 beta).

Testing

There is a slowly growing set of regression tests. They run using textadept-curses inside a recent tmux (>=1.8). To run, just type "make" from the textadept-vi/test directory.