vimrc: add timeout settings

This commit is contained in:
surtur 2022-10-30 03:47:41 +01:00
parent 5ae0f83dfb
commit 459c18a0e9
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -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