8
I occasionally find that while working in iTerm the default Readline key bindings are replaced with the vi
keybindings.
For example, I will try to go to the beginning of the line with ctrl-a, and instead it will print the character ^A
, and then I won't be able to insert any text until I enter insert mode. I know this can be configured by setting the editing-mode in my inputrc file, but I don’t have that set in mine. Is there a way that I could be dynamically entering vi
mode?
1Could you have accidentally pressed Ctr+Alt+J ? (This keycombo toggles between emacs-mode and vi-mode in many readline-compatible applications) – miono – 2017-02-22T09:57:02.340