Source

Centurion / .inputrc

Full commit
$include /etc/inputrc

# TAB completion
set show-all-if-ambiguous on

# for 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
"\ep": yank-last-arg
"\en": yank-nth-arg
Control-l: clear-screen

set keymap vi-insert
# these are for vi-insert mode
"\e[A": history-search-backward
"\e[B": history-search-forward
"\ep": yank-last-arg
"\en": yank-nth-arg
Control-l: clear-screen 

$endif