Skip to content

Instantly share code, notes, and snippets.

@jsjohnst
Created February 22, 2009 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsjohnst/68444 to your computer and use it in GitHub Desktop.
Save jsjohnst/68444 to your computer and use it in GitHub Desktop.
Bringing all the awesomeness of VI to the bash command prompt
set -o vi
# Goto begin of line
bind -m vi-command C-a:vi-insert-beg
bind -m vi-insert C-a:vi-insert-beg
# Goto end of line
bind -m vi-command C-e:vi-append-eol
bind -m vi-insert C-e:vi-append-eol
# clear screen
bind -m vi-command C-l:clear-screen
bind -m vi-insert C-l:clear-screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment