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

Statusline problem #5

Open
sblask opened this issue Dec 16, 2015 · 3 comments
Open

Statusline problem #5

sblask opened this issue Dec 16, 2015 · 3 comments

Comments

@sblask
Copy link

sblask commented Dec 16, 2015

Just tried to install vim-tmux-focus-events and the FocusGained seems to work, however, I get problems when moving through a file. The status line moves when I for example use Ctrl-D or j at the end of the page and part of the buffer gets scrambled. At first I thought it's some incompatibility with the bling/vim-airline plugin, but the problem persists even when I remove all the plugins from my config(apart from vim-tmux-focus-events). Relevant configs are: https://github.com/sblask/dotfiles/blob/master/vimrc.dotfile and https://github.com/sblask/dotfiles/blob/master/tmux.conf.dotfile I am currently using tmux 2.0 and vim 7.4.942 Any idea what could be wrong?

@bruno-
Copy link
Member

bruno- commented Dec 27, 2015

Hey,
unfortunately I don't know why that happens.. messing with status line seems pretty invasive and I don't know how this plugin could cause that..

Quick question for a line from your vimrc, what does this mystical line do:

autocmd FocusGained * silent execute '!echo -e -n "\x1b[\x31 q"' | silent execute '!echo ""'

@sblask
Copy link
Author

sblask commented Dec 29, 2015

This is exactly what I wanted to have the focus gained working for. I have tmux/vim setup so the cursor is a block in normal mode and a pipe in insert mode. Which works fine unless I do a ctrl-zand bring vim back with fg vim will then show a pipe even though its in normal mode. It's a small detail, but it would have been nice to get that working...

@kyounger
Copy link

kyounger commented Feb 6, 2019

@sblask Not sure if this helps, but testing for mode() helped me overcome this issue. I suffered it from the perspective of tmux and switching panes. Here's a link to the relevant section of my vimrc:

https://github.com/kyounger/dotfiles/blob/b153a9aaa77e100db7dfb12e84873ff5f7954198/vim/.vimrc#L1265-L1274

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

3 participants