readline-vim
v0.3.2
Published
Adds vim bindings to nodejs readline.
Downloads
74
Readme
readline-vim 
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 leftl
cursor rightw
word rightb
word left0
beginning of line$
end of line
Movements combined with Actions
cb
: change word leftcw
: change word rightcc
,C
change linedb
: delete word leftdw
: delete word rightdd
,D
delete linex
delete rightX
delete left
History
k
go back in historyj
go forward in history