From 779de966b2e3a8da06101b32202da95bddcd483b Mon Sep 17 00:00:00 2001 From: CronyAkatsuki <64900606+cronyakatsuki@users.noreply.github.com> Date: Wed, 15 Nov 2023 11:58:54 +0100 Subject: [PATCH] Lower key timeout to 1 Lower key timeout to 1, at 25 it takes over a second when pressing escape in enter mode for it to go to normal mode, making it easy to accidentaly type wrong characters. --- vim.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim.plugin.zsh b/vim.plugin.zsh index f9bc0cb..c005bdf 100644 --- a/vim.plugin.zsh +++ b/vim.plugin.zsh @@ -1,6 +1,6 @@ #!/bin/sh bindkey -v -export KEYTIMEOUT=25 +export KEYTIMEOUT=1 if [[ -o menucomplete ]]; then # Use vim keys in tab complete menu: @@ -58,4 +58,4 @@ bindkey -M visual S add-surround # escape back into normal mode if [[ -n "${VI_MODE_ESC_INSERT}" ]] then bindkey -M viins "${VI_MODE_ESC_INSERT}" vi-cmd-mode -fi \ No newline at end of file +fi