#[SOLVED] tmux Esc conflicts with neovim escape causing delay when hitting Esc to go to exit mode

37 messages · Page 1 of 1 (latest)

neat shale
#

I have an issue with tmux ... you see tmux when I'm in neovim sadly esc doesn't function properly.

I have to hit it and wait a bit for it to exit and if i hit esc and move down or up with jkl it moves line down or up ...

now if I don't use tmux it works fine esc just escapes ... so help ?

to illustrate the problem I made a tiny clip in the attachment.. please watch it if you don't understand what I meant when reading this text

chilly flicker
#

set -sg escape-time 0

#

in your tmux conf

#

I am not OP

cerulean knoll
#

@neat shale link your tmux+ neovim please

chilly flicker
#

it's in :help faq in nvim so some people have it

cerulean knoll
#

* I didn't do that the plugin did

chilly flicker
neat shale
#

I reloaded my tmux and nothing

neat shale
# cerulean knoll <@1098652951838462065> link your tmux+ neovim please

here is my tmux config

# Enable mouse mode
set -g mouse on

# bind key "r" (prefix cntl-b r) to source .tmux.conf
# This line will automatically adapt to the new prefix once it's set
bind-key r source-file ~/.tmux.conf \; display-message "    .tmux.conf - reloaded"

# Move the status line to the top of the screen:
# set-option -g status-position top

# change the color of the status line to blue with white text:
# set-option -g status-style bg=blue, fg=white

# increase the statusbar left to show up to 30 characters
set-option -g status-left-length 30

# ----- the part to make it ctrl+a prefix instead of ctrl+b -----

# Unbind the current default prefix of Ctrl+b
unbind-key C-b

# Set the tmux prefix to Ctrl+s instead of Ctrl+b
set-option -g prefix C-s

# Remove the old, unused Ctrl+a setting
# set-option -g prefix C-a # This line was already commented out, keep it that way or remove.

# Bind Ctrl+s to send the prefix (so you can type Ctrl+s Ctrl+s to send a literal Ctrl+s to shell)
bind-key C-s send-prefix

# Remove the old bind-key C-b send-prefix as it's no longer the prefix
# bind-key C-b send-prefix # Comment or remove this line


# ----- the part to make it ctrl+a prefix instead of ctrl+b END-----
set -sg escape-time 0

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible' # Recommended for good defaults

# Plugin for saving and restoring sessions
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'

# Makes continuum restore automatically on tmux start
set -g @continuum-restore 'on'

# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com:user/plugin'

# Initialize TPM (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

(this was me first time using tmux a long time ago, ai helped me a bit put the plugins and stuff)

#

my neovim settings umm

#

sure

neat shale
chilly flicker
neat shale
#

yes

#

reloaded in as many ways as possible

#

alsoo tried different terminal same thing

#

I guess I'm not using tmux on desktop 4 with neovim ? I guess ?

#

set ttimeoutlen=10

#

solved it in nvim

#

[SOLVED] tmux Esc conflicts with neovim escape causing delay when hitting Esc to go to exit mode

#

but idk why the old me made it set ttimeoutlen=450 I'm not sure why the old me did that ?

#

I think if I remember correctly I sat it 10ms befoere but I didn't like it or something anyways it fixed the problem

chilly flicker
#

oh, so it wasn't a tmux issue

neat shale
#

yep

chilly flicker
#

Mine is 50, the default

neat shale
chilly flicker
#

up to you

neat shale
#

well now I know what that ttimeoutlen does... it makes esc wait in nvim so yeah

chilly flicker
#

:help ttm

neat shale
#

the set -sg escape-time 0 you give me is nice too I didn't know the default in tmux was 500ms

chilly flicker
#

you had already set that through tmux-sensible anyway