Comment on Things you didn't know about GNU readline (2019)Comments−mklein9942yAlso, without some sort of indicator, Vim’s modal design is awkward here—it’s very easy to forget which mode you’re in.With `bash`, you can show which mode you're in by putting this in your `~/.inputrc`: show-mode-in-prompt on It makes your prompt look like this: [foo@bar ~]$ # before turning it on @[foo@bar ~]$ # after @[foo@bar ~]$ set -o vi (ins)[foo@bar ~]$ # and after I press esc: (cmd)[foo@bar ~]$ Customize these with `emacs-mode-string`, `vi-ins-mode-string`, and `vi-cmd-mode-string`.
Comments
With `bash`, you can show which mode you're in by putting this in your `~/.inputrc`:
It makes your prompt look like this: Customize these with `emacs-mode-string`, `vi-ins-mode-string`, and `vi-cmd-mode-string`.