-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FocusGained works with Terminal.app (and tmux) #28
Comments
Thanks, Confirmed correct actions (FocusGain, FocusLost) on Terminal.app, OS 10.10 When you changed the .tmux.conf, make sure to reload or kill the tmux server. This caused me an hour to debug. Unlike @bruno-, FocusLost also works seamlessly. |
@bruno- @chrischoy My experience has been that FocusLost pretty much works, except that no matter what I tried I could not make it properly run |
Hey, it's good to hear that I just tried and this |
|
Thanks for sharing.. that one works! On Tue, Mar 3, 2015 at 2:59 PM, Steven Lu notifications@github.com wrote:
|
Hi,
it seems I managed to get
FocusGained
work by using this plugin andtmux
. Steps for this are below and I'm still a bit fuzzy *why* this works.Tools:
How to enable
FocusGained
for terminal vim with the above tools:focus-events
option on:tmux set -g focus-events on
let g:vitality_always_assume_iterm = 1
That's it!
FocusGained
should now work. I've tested it with vim by setting the following autocommand:A couple observations:
FocusLost
does not work for some reasonTerminal.app
+ vim)If this plugin is still maintained, do you think we could add these instructions somewhere (wiki maybe) so people know this is possible? Also, how about enabling the plugin when vim is running inside
tmux
so thatlet g:vitality_always_assume_iterm = 1
is not required?The text was updated successfully, but these errors were encountered: