I use Vim in a tmux session, and recently I've noticed that Vim is raising an alert after a few seconds when I switch to another tmux window. Nothing has happened in Vim after I move windows - usually I do some edits and write the file with :w
and then move in tmux. A few seconds later Vim alerts and tmux flashes that Vim needs attention.
Why is Vim being so needy? How can I prevent this?
Update #1
Output from :au FocusLost
as requested:
:au FocusLost
--- Auto-Commands ---
Press ENTER or type command to continue
Links to .vimrc
and .tmux.conf
:
Update #2
Using versions Vim 7.3 and tmux 1.6. This whole thing is happening when in an SSH session where tmux is running. I switch away from the Vim window using tmux keys Ctrl+A
Ctrl+N
as per the tmux conf.
gnome-terminal
each with a tmux and one has a vim in it, when I switch I don't see any issues while using your config files.