From 961326f8e9f1afa6c2e2cd29404d9ca60b5c5dfb Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Fri, 23 Jun 2017 03:10:17 -0700 Subject: [PATCH] [editor] Set Delete key in vicmd mode to delete character Delete key deletes character in vimcmd cmd mode instead of weird default functionality. The default functionality in vicmd mode is the Delete key will change the case of many of the characters on the screen, which is not the default thing that vim does. This could be confusing and frustrating to users, so set it to delete a character instead. --- modules/editor/init.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/editor/init.zsh b/modules/editor/init.zsh index be227ce..6a14f62 100644 --- a/modules/editor/init.zsh +++ b/modules/editor/init.zsh @@ -322,6 +322,9 @@ for keymap in 'emacs' 'viins'; do bindkey -M "$keymap" "$key_info[Control]X$key_info[Control]S" prepend-sudo done +# Delete key deletes character in vimcmd cmd mode instead of weird default functionality +bindkey -M vicmd "$key_info[Delete]" delete-char + # Do not expand .... to ../.. during incremental search. if zstyle -t ':prezto:module:editor' dot-expansion; then bindkey -M isearch . self-insert 2> /dev/null