commit d30bbaffad5253b446efa48875b2069ba5636c31
parent e279a093cb55d47d6afa8a4b988d6adbc5f58b27
Author: Alex Balgavy <alex@balgavy.eu>
Date: Fri, 22 Jul 2022 12:45:53 +0200
vim: make escape faster
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -618,6 +618,12 @@ set sessionoptions=buffers,curdir,folds,globals,localoptions,options,resize,tabp
" Use ag for grepping
set grepprg=ag\ --vimgrep
set updatetime=100
+
+" Make <esc> faster.
+" Note: this disables arrow keys in insert mode, because arrow keys start with <esc> (e.g. `\eOD` for left arrow).
+" However, I don't use arrow keys anyway, so that's fine.
+set noesckeys
+
" }}}1
" Editor {{{1
" In general, don't conceal anything
@@ -648,7 +654,7 @@ endif
set cursorline
" Reduce waiting on keys (like esc)
-set timeoutlen=1000 ttimeoutlen=50
+set timeoutlen=1000 ttimeoutlen=5
" Wrap settings - no wrap by default
set nowrap