Adds vim bindings to nodejs readline.
npm install readline-vimAdds vim bindings to nodejs readline.
npm install readline-vim
Repl Example:
``js
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
- Insert Mode
- Normal Mode
- Movements
- Movements combined with Actions
- History
A subset of vim keybindings is supported by readline-vim:
- Esc, Ctrl-[: 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
-