From 258b5a48933b2c34dcfb042029d477ba285071d7 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 6 Jan 2016 19:07:26 +0800 Subject: Add .Xmodmap & .inputrc; Other small updates. * .Xmodmap: disable CapsLock key * .inputrc: vi-style bindings for readline --- .inputrc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .inputrc (limited to '.inputrc') 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: # -- cgit v1.2.2