Skip to content

Instantly share code, notes, and snippets.

@sverweij
Last active January 25, 2017 21:08
Show Gist options
  • Save sverweij/9336969c803ddcaf504c to your computer and use it in GitHub Desktop.
Save sverweij/9336969c803ddcaf504c to your computer and use it in GitHub Desktop.
switch on vi mode for bash and stuff using gnu-readline

In the .inputrc add set editing-mode vi (for bash and other stuff using gnu readline) ... or in the .bashrc add set -o vi (if you want to use it in bash only)

Source (with lots of good nuggets): http://blog.sanctum.geek.nz/vi-mode-in-bash/

@stephanbakker
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment