diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-01-06 22:59:26 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-01-06 22:59:26 +0800 |
commit | 25b947edf445a96db335fe285a8b253b214649ff (patch) | |
tree | 3f785cdbef303c71111debd067c95a62ea456587 /_inputrc | |
parent | 0ed3373f1c2d47aba769aa67439e05350c2792e9 (diff) | |
download | dotfiles-25b947edf445a96db335fe285a8b253b214649ff.tar.bz2 |
Rename .* => _*; Move out private contents.
Diffstat (limited to '_inputrc')
-rw-r--r-- | _inputrc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/_inputrc b/_inputrc new file mode 100644 index 0000000..7d93f5d --- /dev/null +++ b/_inputrc @@ -0,0 +1,30 @@ +# +# ~/.inputrc +# +# readline configurations +# +# Reference: +# [1] ArchWiki - Readline +# https://wiki.archlinux.org/index.php/Readline +# +# Aaron LI +# 2015-09-26 +# + +#$include /etc/inputrc + +# vi mode +set editing-mode vi +$if mode=vi +set keymap vi-command +# these are for vi-command mode +"\e[A": history-search-backward +"\e[B": history-search-forward +set keymap vi-insert +# these are for vi-insert mode +"\e[A": history-search-backward +"\e[B": history-search-forward +$endif + + +# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=readline: # |