Created
December 8, 2016 22:12
-
-
Save crawles/a5c394fd32bc3d078658a72efc72d882 to your computer and use it in GitHub Desktop.
My inputrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# By default up/down are bound to previous-history | |
# and next-history respectively. The following does the | |
# same but gives the extra functionality where if you | |
# type any text (or more accurately, if there is any text | |
# between the start of the line and the cursor), | |
# the subset of the history starting with that text | |
# is searched (like 4dos for e.g.). | |
# Note to get rid of a line just Ctrl-C | |
"\e[B": history-search-forward | |
"\e[A": history-search-backward | |
set editing-mode vi | |
set keymap vi-insert | |
"kj": vi-movement-mode # remap escape | |
$if mode=vi | |
set keymap vi | |
set convert-meta on | |
$endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment