Tmux Panel Blinking From Vim - How Do Disable?

87 views
Skip to first unread message

G M

unread,
Oct 11, 2023, 5:02:56 PM10/11/23
to tmux-users
I have a small annoyance that I cannot seem to deal with. I often have vim open in a window and will sometimes press escape a couple of times (just habit) and then quickly switch windows. What happens is that the tmux panel will highlight the vim window even though nothing happened besides a benign escape key press being resolved. I included a screenshot of what it looks like. The window "vim" gets highlighted in black.

I don't really know what feature of tmux this is (so I have a hard time searching for it online) or if this is something I have to set in vim. I tried
set -g visual-bell off
but it does not seem to work. Any help would be appreciated.

George
annoyance.png

Trey Blancher

unread,
Oct 11, 2023, 9:23:43 PM10/11/23
to G M, tmux-users
George,

That looks like tmux picking up a bell (0x07) character, and is an indication
that the program on that window tried to alert the user for some reason. In one
terminal emulator I have to use, there is an audible tone (typically the system
alert tone on Windows) when the shell issues a bell character.

How to turn it off in tmux I don't know, but you may be able to configure vim to
not issue a bell character in the first place when you press Escape more than
once, and that will avoid tmux picking it up.
>--
>You received this message because you are subscribed to the Google Groups
>"tmux-users" group.
>To unsubscribe from this group and stop receiving emails from it, send an email
>to [1]tmux-users+...@googlegroups.com.
>To view this discussion on the web, visit [2]https://groups.google.com/d/msgid/
>tmux-users/7034ae74-1f15-4734-9684-641779bee2b8n%40googlegroups.com.
>
>References:
>
>[1] mailto:tmux-users+...@googlegroups.com
>[2] https://groups.google.com/d/msgid/tmux-users/7034ae74-1f15-4734-9684-641779bee2b8n%40googlegroups.com?utm_medium=email&utm_source=footer


G M

unread,
Oct 13, 2023, 2:26:41 PM10/13/23
to tmux-users
I have fixed it. It seems that I had to disable this in vim. I added the following to my vimrc

set vb t_vb=

Reply all
Reply to author
Forward
0 new messages