Kakoune: Lag switching modes

Created on 18 Jan 2017  路  4Comments  路  Source: mawww/kakoune

Hi,

I have found that there is a delay when switching out of the insert and prompt modes. But switching into these modes there is no delay. I'm using a fresh install of Kak on Mac.

Is there any reason for this? And can this delay be fixed?

Thanks.

Most helpful comment

Add

set -sg escape-time 25

In your tmux.conf.

Whats happening is that tmux, as Kakoune, uses a delay to distinguish Alt+Key and Esc. But the default tmux delay is huge (500ms or so), leading to a big delay. 25ms is good enough on modern computers.

All 4 comments

Are you using a terminal multiplexer?

Yeah, tmux. That's interesting, I didn't notice that without tmux there is no delay. Do you know the reason why it does this?

Add

set -sg escape-time 25

In your tmux.conf.

Whats happening is that tmux, as Kakoune, uses a delay to distinguish Alt+Key and Esc. But the default tmux delay is huge (500ms or so), leading to a big delay. 25ms is good enough on modern computers.

Thanks for that explanation. The solution worked perfectly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

notramo picture notramo  路  3Comments

a12l picture a12l  路  3Comments

abitofalchemy picture abitofalchemy  路  3Comments

alexherbo2 picture alexherbo2  路  4Comments

MasterOfTheTiger picture MasterOfTheTiger  路  4Comments