-
Notifications
You must be signed in to change notification settings - Fork 49
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
Automatic line number toggle does not work inside tmux #45
Comments
That article includes a simplified version of the number toggling. This plugin is a little smarter, and it includes support for things like this since cfaecb9. Could you try installing the plugin, to see if that solves your issue? I'll make sure to add a note about this to the article. |
I have installed this plugin. It does not work. |
I’m afraid I can’t reproduce this myself. I have Could you make sure you have the most recent version of vim-numbertoggle installed, and have removed the code snippet from the article from your Vim configuration files? |
I have filed an issue on Neovim repo and got the right answer. We need to turn on the
|
I think this should be mentioned in the README |
Does adding Running tmux 3.3a and Vim 9.0 on one machine and tmux 3.0a and Vim 8.1 on the other. |
Looks like this issue is back, the mentioned fix does not work. tmux 3.3a |
What worked for me was to install the Although the plugin's README mentions that newer versions of Vim have native support for reporting focus events and, therefore, one should not need to install the plugin, installing it helped resolve the issue on all my machines. |
I read your post here and the automatic number toggle works great. The settings I use:
But it seems that this setting does not work inside tmux. If I open two tmux panes side by side and open a file with Neovim in one pane and then switch to another tmux pane, the relative line number in Neovim does not change to absolute number. How to fix this issue?
Besides, I use
set -g mouse on
inside~/.tmux.conf
so that I can use mouse to change tmux panes, if that information is relevant.The text was updated successfully, but these errors were encountered: