Is there a vim mode available for `iex`
Asked Answered
S

1

6

Is there a vim mode available for iex? That is, something like set -o vi in bash.

Here's my version info: IEx 1.13.0 (compiled with Erlang/OTP 24)

I'm running it on Linux Mint 20.2 Uma.

Sisto answered 28/12, 2021 at 14:24 Comment(1)
I’m pretty sure there isn’t, because iex relies on erl which is a rolling implementation of the shell.Criminal
B
3

No, iex doesn't have vim mode.

However, if you're a vim user, I can recommend you check out neovim. It has a built-in terminal emulator which might solve some of your needs. You could always spin it up and run iex within allowing you to more or less navigate the terminal through vim.

Bristletail answered 31/12, 2021 at 13:24 Comment(1)
The built-in terminal emulator does not work well at all as a replacement for a command-line vi mode. First, if you set modifiable and you try to edit your commands, the modifications do not survive going back to insert mode. Then in a command line vim mode, j and k are a quick way to go up and down the command history so you would lose of the main perks of a command line vi mode.Canossa

© 2022 - 2024 — McMap. All rights reserved.