Reputation: 4400
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
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