#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 $if bash # space will expand ! history items. Space: magic-space set show-all-if-ambiguous on set match-hidden-files on $endif