Skip to content

Instantly share code, notes, and snippets.

@giggio
Created July 8, 2014 00:45
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 giggio/468d1a49bf7cc59f364a to your computer and use it in GitHub Desktop.
Save giggio/468d1a49bf7cc59f364a to your computer and use it in GitHub Desktop.
set editing-mode vi
set bell-style none
set show-all-if-ambiguous on
set completion-ignore-case on
# on menu-complete, first display the common prefix, then cycle through the options when hitting TAB
set menu-complete-display-prefix on
set keymap vi-command
"gg": beginning-of-history
"G": end-of-history
set keymap vi-insert
"jj": vi-movement-mode
"\C-w": backward-kill-word
"\C-p": history-search-backward
# Pressing tab will list all completions & select the first one. Pressing it again will cycle through available completions.
TAB: menu-complete
# Shift-TAB cycles completions backward
"\e[Z": menu-complete-backward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment