Skip to content

Instantly share code, notes, and snippets.

@snowch
Forked from johnlim/.inputrc
Created June 22, 2020 14:01
Show Gist options
  • Save snowch/600f9c3dc567a1129d1a2cfcdcfd9892 to your computer and use it in GitHub Desktop.
Save snowch/600f9c3dc567a1129d1a2cfcdcfd9892 to your computer and use it in GitHub Desktop.
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
$endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment