From 459c18a0e9d3c3ffef5e3ebb1897e45cfb723409 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 30 Oct 2022 03:47:41 +0100 Subject: [PATCH] vimrc: add timeout settings --- .vim/vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.vim/vimrc b/.vim/vimrc index b0f46b1..c8cbd9b 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -1211,6 +1211,17 @@ set nogdefault " can select past EOL in visual block if one line is longer set virtualedit=block +" set timeoutlen=1200 "more time for typing complex mappings +set timeoutlen=200 + +" turn off timeout; default is 1000 +" fix airline mode changes without screwing up remaps of default letter keys +" (without this, using escape to exit insert mode won't change airline to +" display normal mode immediately in the terminal) +" ttimeout only applies to keycodes (so changes to default vim keys that can't +" be unmapped is not an issue, e.g. using r in multikey/prefix bindings) +set notimeout ttimeout ttimeoutlen=10 + " persistent undo history (even if close buffer) " Save undos after file closes set undofile