Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 808
nisc Avatar asked Feb 15 '26 17:02

nisc


1 Answers

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?

like image 200
Ercan Erden Avatar answered Feb 17 '26 08:02

Ercan Erden



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!