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

Insert mode cursor in vim remains same in nested tmux session #40

Open
ayushkumarshah opened this issue Sep 18, 2020 · 4 comments
Open

Comments

@ayushkumarshah
Copy link

Everything works fine except the cursor remains the same when switching from normal mode to the insert mode inside vim in a nested tmux session (i.e. doesn't become vertical rather than flat as in normal mode). However, it works fine if the tmux session is not nested. Is there any fix for this?

@Xblow
Copy link

Xblow commented Dec 5, 2020

With this configuration, if I ssh into a remote server and open tmux with neovim there, my cursor behaves correctly.

@ayushkumarshah
Copy link
Author

With this configuration, if I ssh into a remote server and open tmux with neovim there, my cursor behaves correctly.

@Xblow Yeah, it works that way. The problem is in nested tmux sessions (open tmux in local machine, ssh into remote server inside the tmux session and open tmux session in the remote server)

@Xblow
Copy link

Xblow commented Dec 6, 2020

@ayushkumarshah By "using this config" I meant using tmux with this config, within which I'd ssh into a server, shoot up tmux there and launch neovim.
If I use F12 to switch off root tmux key bindings then cursor also behaves correctly.
I don't know if this would be the case with original vim (with custom cursor) as I did not check that (and I am not a maintainer). Which flavour of vim do you use?
Hope you'll get this issue resolved :)

@ayushkumarshah
Copy link
Author

By "using this config" I meant using tmux with this config, within which I'd ssh into a server, shoot up tmux there and launch neovim.
If I use F12 to switch off root tmux key bindings then cursor also behaves correctly.

Ohh, I see. I don't know what is causing the issue in my case.

Which flavour of vim do you use?

I use neovim.

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