nisc
nisc

Reputation: 4400

Node.js REPL with vim keybindings AND method/variable completion

As far as I know, the standard way to get vim keybindings in the Node REPL is to use rlwrap like so:

NODE_NO_READLINE=1 rlwrap node

This, however, kills method and variable tab-completion. Is there some workaround?

Upvotes: 12

Views: 1668

Answers (2)

ELLIOTTCABLE
ELLIOTTCABLE

Reputation: 18038

It's two years out of date, (as is this question), but hey.

https://github.com/thlorenz/readline-vim

Upvotes: 0

Ercan Erden
Ercan Erden

Reputation: 1926

Seems impossible. You can put your own completion file in /usr/share/rlwrap/completions and have some primitive(no variables) completion but that seems useless in a repl.

Here's the explanation from the rlwrap author himself:

Can rlwrap use a wrapped command's own TAB completion?

Upvotes: 1

Related Questions