I am a long time vi(m) user and recently made the switch to using vi key binding in bash. I can already tell that this will be an improvement, but I would like to customize a few things to really become proficient.
- I currently use the following mapping and it is totally entrenched:
map ii <esc>. Can I do the same on the command line? It may seem trivial, but I am so used to just tapping i twice that reaching all the way up to the escape key is painful. - I would LOVE to find a way to indicate what mode I am in: insert or command. This could take the from of changing the cursor type/color, putting a note in the prompt, etc.
I have looked through the man pages for bash and looked at creating an .inputrc file, but so far have come up with nothing that would work. I see that you can map keys, but can you do it for two keys hit in rapid succession, like I do?
I have seen solutions out there that say they work for zsh. I am not interested in switching to zsh. If this is not possible in bash, I can live with it.