0.3.2 • Published 11 years ago

readline-vim v0.3.2

Weekly downloads
167
License
-
Repository
github
Last release
11 years ago

readline-vim build status

Adds vim bindings to nodejs readline.

Installation

npm install readline-vim

Usage

Repl Example:

var rlv = require('readline-vim');
var repl = require('repl');

var r = repl.start();

// pass the readline component of the repl in order to add vim bindings to it
rlv(r.rli);

Table of Contents generated with DocToc

Vim Bindings

A subset of vim keybindings is supported by readline-vim:

Insert Mode

  • Esc, Ctrl-[: normal mode

Normal Mode

  • i, I, a, A: insert mode with the usual side effects

Movements

  • h cursor left
  • l cursor right
  • w word right
  • b word left
  • 0 beginning of line
  • $ end of line

Movements combined with Actions

  • cb: change word left
  • cw: change word right
  • cc, C change line
  • db: delete word left
  • dw: delete word right
  • dd, D delete line
  • x delete right
  • X delete left

History

  • k go back in history
  • j go forward in history
0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.4

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago