From 4519e4f96bdf040650bf4ecbe3fbfe9977850171 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Mon, 11 Sep 2017 21:59:21 +0300 Subject: [PATCH] doc faq: Document how to fix the "insert mode escape lag" --- doc/manpages/faq.asciidoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/manpages/faq.asciidoc b/doc/manpages/faq.asciidoc index 71fcc8aa..cd43fa02 100644 --- a/doc/manpages/faq.asciidoc +++ b/doc/manpages/faq.asciidoc @@ -72,6 +72,14 @@ Note that if you're using `tmux`, the proper -official- way to get Kakoune to work is to add the following line to your `tmux` configuration file: `set -sg default-terminal screen-256color` +Why does leaving insert mode take more than half a second in `tmux` ? +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Upon hitting the escape key, `tmux` waits for a short period of time to +determine whether it's part of a function or a meta key sequence. In order +to fix this "lag", set the waiting period in your `tmux` configuration file +to a short time, e.g. 25ms: `set -sg escape-time 25` + How do I automatically indent code, as Vim does with `=` ? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~