0.3.2 • Published 12 years ago
readline-vim v0.3.2
readline-vim 
Adds vim bindings to nodejs readline.
Installation
npm install readline-vimUsage
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
hcursor leftlcursor rightwword rightbword left0beginning of line$end of line
Movements combined with Actions
cb: change word leftcw: change word rightcc,Cchange linedb: delete word leftdw: delete word rightdd,Ddelete linexdelete rightXdelete left
History
kgo back in historyjgo forward in history