Skip to content

Instantly share code, notes, and snippets.

@pofigizm
Last active July 21, 2017 12:15
Show Gist options
  • Save pofigizm/15ad8f6f2585976d5b9d974c17c29f99 to your computer and use it in GitHub Desktop.
Save pofigizm/15ad8f6f2585976d5b9d974c17c29f99 to your computer and use it in GitHub Desktop.
.inputrc
# want vi to be the default editor for readline
set editing-mode vi
# vi settings
$if mode=vi
# normal mode
set keymap vi-command
# "j": beginning-of-history
# "l": backward-char
# "h": forward-char
# "G": end-of-history
# insert mode
set keymap vi-insert
"jj": vi-movement-mode
# show status
set show-mode-in-prompt on
$endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment