Last active
April 3, 2021 08:14
-
-
Save johnlim/d3fb791902fc6ae3347c1a0edd4ed2f0 to your computer and use it in GitHub Desktop.
Set bash to use Vi-mode and remap <Esc> to jj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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