aboutsummaryrefslogtreecommitdiff
path: root/vi-mode.sh
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-04-04 04:58:13 +0200
committersrdusr <trevorgray@srdusr.com>2023-04-04 04:58:13 +0200
commit2f4e4b0b317dd4c864d997ee080b9d51f1692d8a (patch)
treef510842c62b558e2c09702f6dcf3cf9bf60943db /vi-mode.sh
parentdc19e6210735217d9659d2c0a6034ce0ce82bc86 (diff)
downloaddotfiles-2f4e4b0b317dd4c864d997ee080b9d51f1692d8a.tar.gz
dotfiles-2f4e4b0b317dd4c864d997ee080b9d51f1692d8a.zip
changed incorrect syntax for mapping new escape keys
Diffstat (limited to 'vi-mode.sh')
-rw-r--r--vi-mode.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/vi-mode.sh b/vi-mode.sh
index d7f4e4f..7e94689 100644
--- a/vi-mode.sh
+++ b/vi-mode.sh
@@ -54,7 +54,7 @@ if [[ -n "$ZSH_VERSION" ]]; then
bindkey -M menuselect 'l' vi-forward-char
# Map 'jk' to Escape key in INSERT mode
- bindkey -M insert 'jk' vi-cmd-mode
+ bindkey -M viins 'jk' vi-cmd-mode
# Set vi-mode and key bindings for bash
elif [[ -n "$BASH_VERSION" ]]; then