Skip to content

Instantly share code, notes, and snippets.

@freshtonic
Created October 31, 2011 01:00
Show Gist options
  • Save freshtonic/1326669 to your computer and use it in GitHub Desktop.
Save freshtonic/1326669 to your computer and use it in GitHub Desktop.
Vi on the command line
In your ~/.inputrc (make one if you don't have one):
set editing-mode vi
In your ~/.bashrc (or whatever)
set -o vi
Launch a new command prompt, you should have vi keybindings. If you get sick of it, set -o emacs will fix it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment