gitvimcommand-linegit-bash

How to enable vim style navigation in git bash?


I'm pretty tired of navigating git bash with the arrow keys and I read somewhere that you can enable vim style navigation in git bash so I was just wondering how to enable this?


Solution

  • You should be able to simply type:

    set -o vi
    

    That will activate vi-style navigation.
    I just tested it on Windows with Git 2.11.

    See more at "What is meant by a shell is in “vi” mode or “emacs” mode?"