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?
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With