mnkhod

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

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

garazdawi

Erlang Core Team

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

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.

Where Next?

Popular in Questions Top

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36820 110
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

We're in Beta

About us Mission Statement