Skip to content

Instantly share code, notes, and snippets.

@johnlim
johnlim / .inputrc
Last active April 3, 2021 08:14
Set bash to use Vi-mode and remap <Esc> to jj
# want vi to be the default editor for readline
set editing-mode vi
# vi settings
$if mode=vi
# normal mode
set keymap vi-command
# insert mode
set keymap vi-insert
"jj": vi-movement-mode # remap escape