From c732d7d18d1f453ecbffd0b2aa775c3c0b1d6aca Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Mon, 25 Sep 2023 00:10:06 +0200 Subject: [PATCH] vim in bash --- vim/vim_in_bash.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vim/vim_in_bash.md diff --git a/vim/vim_in_bash.md b/vim/vim_in_bash.md new file mode 100644 index 0000000..e045510 --- /dev/null +++ b/vim/vim_in_bash.md @@ -0,0 +1,19 @@ +--- +title: "vim in bash" +tags: [ "vim", "bash", "inputrc" ] +--- + +Put bash in vim mode! + +Place the following in your `~/.inputrc`: + +```bash +set editing-mode vi +set show-mode-in-prompt on +set vi-ins-mode-string \1\e[33;32m\2[>]=\1\e[0m\2 +set vi-cmd-mode-string \1\e[33;1m\2[?]=\1\e[0m\2 + +set keymap vi-insert +RETURN: "\e\n" +``` +