[Solved] howto remap bash keys in vi mode
Hey, all i really need is a place to post this that i know google will cache. I've seen one other person on the Internet who had the exact same problem as I, we both use dvorak keyboards and wanted to use bash vi mode, but couldnt rebind our keys. To work this out i actually had to go through the source code of libreadline, so i want to save anyone else the pain.
To rebind the vi command mode keys, you have to first set the keyboard layout to vi-move (or vi, or vi-command) and then make your bindings. This may seem logical, but the documentation doesnt even hint that this may be a solution. My .inputrc file has the following
and also because i know that this will probably relate to only very few people, hello to the guy using a dvorak keyboard and wanting to use vi mode 4 years from now :p
set keymap vi-move