End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Readline.vi_editing_mode?
Readline.vi_editing_mode? → bool
ext/readline/readline.c
View on GitHub ↗
static VALUE
readline_s_vi_editing_mode_p(VALUE self)
{
return rl_editing_mode == 0 ? Qtrue : Qfalse;
}
Returns true if vi mode is active. Returns false if not.
Raises NotImplementedError if the using readline library does not support.