Skip to content

Instantly share code, notes, and snippets.

@whroman
Created January 21, 2016 08:30
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 whroman/52643ebfb4d2215a1e3c to your computer and use it in GitHub Desktop.
Save whroman/52643ebfb4d2215a1e3c to your computer and use it in GitHub Desktop.
#set editing-mode vi
#set keymap vi
# If there is any text in front of the cursor then up and down
# do history search, otherwise up and down do normal history prev/next.
"\e[B": history-search-forward
"\e[A": history-search-backward
# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
set show-all-if-ambiguous on
set show-all-if-unmodified on
set completion-query-items -1
set page-completions off
set print-completions-horizontally on
#set history-preserve-point on
$if bash
## This was extremely annoying.
## # space will expand "!" history items.
## Space: magic-space
set match-hidden-files off
set visible-stats on
set completion-ignore-case on
set mark-directories on
set mark-symlinked-directories on
$endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment