-
Notifications
You must be signed in to change notification settings - Fork 335
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
navigating between tmux panes works fine but doesn't work in vim split panes #391
Comments
I opened vim outside a tmux session and the keybindings |
I am seeing same issue. |
Linux Mint 21 I had a similar issue and found this change to .tmux.conf to be helpful: --- is_vim="ps -o state= -o comm= -t '#{pane_tty}' +++ is_vim="ps -o args -g $$ | grep -iqE 'n?vim?x?'" I don't know all the ins and outs of ps, but it seems to work for me. On the other hand, is taken over by tmux and interferes with digraphs in nvim. |
I am experiencing the same issue. Pane switching in Neovim works fine when I'm not in a tmux session. However, if I map |
I encountered the same issue. After installing the Fig plugin, the ttys sequence in my terminal got messed up, causing the #{pane_tty} parameter to be passed incorrectly. Here is the output of the ps command:
The value of #{pane_tty} is ttys004, but nvim is running on ttys005, causing vim's detection to fail. Solution: Check if the output of #{pane_tty} matches the ttys where nvim is running. If not, it could be due to the influence of terminal plugins. My temporary solution is to uninstall Fig. |
@HzTTT Suggestion worked. Fig is now changed to Amazon Q for command line. Uninstalling the latter solved the problem. Thank you. 🙏 |
@htlin222 How do you use Amazon Q for command line?😭I seem to still be having issues with it.
The first |
Possibly unrelated, but I run neovim inside alpine and ran into the same issue described above. Not sure if this was a recent change or not but I needed to install |
@neurosnap I'm using mac. |
I am using nvim inside an alpine docker container and I have the same issue. What I have observed is that this started happening recently so I guess it was caused by a recent change? |
I had the same issue and found a solution. Opening split paned in Vim and a terminal buffer -> no issues moving in and out. This update changed the mappings from Reverting the changes by adding the following config to my vimrc fixed my issue: let g:tmux_navigator_no_mappings = 0
noremap <silent> <C-h> :<C-U>TmuxNavigateLeft<cr>
noremap <silent> <C-j> :<C-U>TmuxNavigateDown<cr>
noremap <silent> <C-k> :<C-U>TmuxNavigateUp<cr>
noremap <silent> <C-l> :<C-U>TmuxNavigateRight<cr>
noremap <silent> <C-\> :<C-U>TmuxNavigatePrevious<cr>
|
Any update on this issue? Facing the same problem where vim pane navigation works great outside of tmux, tmux <-> vim navigation works great in tmux but cannot change vim panes inside tmux. Tried both above fixes but to no avail. Thanks for your help! |
Had the same problem, uninstalling Amazon Q (prior Fig) fixes the issue. But if you want both Amazon Q and vim-tmux-navigator to work you have to modify the |
That was the issue here, thanks @dbagia. PS: I am running a Fedora 40 rootfs inside of WSL2 - that does not happen on Fedora 40 Workstation. |
That works. thank you! |
I'm running
Ubuntu 22.04.4 LTS
viaWSL2 on Windows 11
Output for
:verbose nmap <C-h>
Output for
:TmuxNavigatorProcessList
tmux.conf
I'm using
lazy.nvim
as my nvim plugin manager and this is the only thing I have inplugins/init.lua
The text was updated successfully, but these errors were encountered: