Skip to content
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

tmux "set -g focus-events on" and fzf adds characters to vim #434

Closed
aliev opened this issue Dec 7, 2015 · 3 comments
Closed

tmux "set -g focus-events on" and fzf adds characters to vim #434

aliev opened this issue Dec 7, 2015 · 3 comments

Comments

@aliev
Copy link

aliev commented Dec 7, 2015

if tmux option is enabled:

set -g focus-events on

(This option is required for vim-tmux-focus-events plugin)

fzf adds characters to vim when I run fzf

maybe this is not issue, but it would be interesting to find a solution to so solve this problem.

I tried to add settings

au FocusGained * silent redraw!
au FocusLost * silent redraw!

but it did not help.

** UPD ** my shortcut to run Files command

nnoremap <silent> <Leader>f :Files<CR>

Thanks!

@junegunn
Copy link
Owner

junegunn commented Dec 7, 2015

Thanks for the report. I added set -g focus-events on to my tmux.conf (I still don't know what the option is for though), reloaded the config, but I can't seem to reproduce the issue you reported.

@aliev
Copy link
Author

aliev commented Dec 7, 2015

@junegunn

Also, vim-tmux-focus-events makes the autoread option work properly for terminal vim. So far, this was only working in a GUI version.

and

FocusGained and FocusLost autocommand events are not working in terminal vim. This plugin restores them when using vim inside Tmux.

very usable.

I think same issue tmux-plugins/vim-tmux-focus-events#2

@junegunn
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants