readline-vim
Adds vim bindings to nodejs readline.
Last updated 7 years ago by thlorenz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install readline-vim 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.3.2                                ...           latest (7 years ago)

10 Versions

  • 0.3.2                                ...           7 years ago
  • 0.3.1                                ...           7 years ago
  • 0.3.0                                ...           8 years ago
  • 0.2.4                                ...           8 years ago
  • 0.2.3                                ...           8 years ago
  • 0.2.2                                ...           8 years ago
  • 0.2.1                                ...           8 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 10
Dependencies (2)
Dev Dependencies (4)

Copyright 2014 - 2016 © taobao.org |