Skip to content

Instantly share code, notes, and snippets.

@johnlim
Last active April 3, 2021 08:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnlim/d3fb791902fc6ae3347c1a0edd4ed2f0 to your computer and use it in GitHub Desktop.
Save johnlim/d3fb791902fc6ae3347c1a0edd4ed2f0 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