mnkhod
Are Vi keybindings possible inside IEx?
Repl driven development is so cool, like figuring out iex -S mix phx.server really changed my whole workflow.
I been searching online to see if vi keybindings are possible inside IEx, if so that would help with editing commands
Most Liked
arcanemachine
If you have your visual editor set to Vim (e.g. set VISUAL=vim in your .bashrc, or before opening IEx), then pressing Ctrl+o will allow you to edit the current command in Vim.
garazdawi
It depends on what you mean with vi bindings, but having different modes such as vi is not possible.
You can however configure other bindings if you wish, that is described here: edlin — OTP 29.0.3 (stdlib 8.0.2). Maybe you can do something with that which makes it simpler for you?
hilko
For me this is one of the many reasons why I’ve mostly moved towards using LiveBook for most of the stuff I’d use IEx for. It’s obviously not a complete replacement, but with some adjustments to my workflow, it’s so much better in most ways /and/ it has pretty solid support for vim keybindings.
Generally I now just connect a livebook to my running project, and when possible, I do snippets of coding inside the livebook. In many cases just being able to see the output as a table is a godsent.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









