I use vi
command-line editing (set editing-mode vi
in ~/.inputrc
) in Bash shells.
However, I find it frustrating, that I cannot see whether vi
command-line editing is currently in command or input mode.
Is there someway to display the current mode of vi
command-line editing in Bash or tmux?
Best Answer
You can set the cursor style to reflect the mode by setting these in your
.inputrc
:This will give you a beam cursor in insert mode or a block cursor for normal mode.
For more see https://stackoverflow.com/a/42107711/52817