Skip to content

Instantly share code, notes, and snippets.

@arcseldon
Forked from jfreeze/gist:8894279
Created October 26, 2017 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arcseldon/106d55d063b47879fb55b4d61035f477 to your computer and use it in GitHub Desktop.
Save arcseldon/106d55d063b47879fb55b4d61035f477 to your computer and use it in GitHub Desktop.
Get VI bindings in IEX (Elixir REPL)
# VI bindings in iex:
brew install rlwrap # on OSX
echo "alias iex='rlwrap -a foo iex'" >> ~/.bash_profile
echo "set editing-mode vi" >> ~/.inputrc
source ~/.bash_profile
# To run iex WITHOUT rlwrap
\iex
# Note
You cannot have vi bindings through rlwrap AND command completion at the same time.
The author of rlwrap explains the reason here: http://stackoverflow.com/questions/9210931/is-there-a-way-of-running-rlwrap-with-tab-completion-disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment