From c12334a630135ebb3a10533ee82ccbc4164716fc Mon Sep 17 00:00:00 2001 From: Briain O'Driscoll Date: Wed, 1 Jun 2022 01:12:43 +0100 Subject: [PATCH] increase timeoutlen --- lua/user/keymaps.lua | 3 ++- lua/user/options.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index 32b6a04..0cb7950 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -40,8 +40,9 @@ keymap("n", "", ":m .+1==gi", opts) keymap("n", "", ":m .-2==gi", opts) -- Insert -- --- Press jk fast to enter +-- Press jk or kj quickly to escape to normal mode keymap("i", "jk", "", opts) +keymap("i", "kj", "", opts) -- Visual -- -- Stay in indent mode diff --git a/lua/user/options.lua b/lua/user/options.lua index 799aa9d..ea89e32 100644 --- a/lua/user/options.lua +++ b/lua/user/options.lua @@ -17,7 +17,7 @@ local options = { splitright = true, -- force all vertical splits to go to the right of current window swapfile = false, -- creates a swapfile -- termguicolors = true, -- set term gui colors (most terminals support this) - timeoutlen = 100, -- time to wait for a mapped sequence to complete (in milliseconds) + timeoutlen = 300, -- time to wait for a mapped sequence to complete (in milliseconds) undofile = true, -- enable persistent undo updatetime = 300, -- faster completion (4000ms default) writebackup = false, -- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited