You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using vim-tmux-navigator with sudo vim, navigation does not function as expected. It seems that tmux recognizes sudo as the active process instead of vim, causing navigation keybindings to fail.
Steps to Reproduce
Split tmux window into 2 panes with <prefix> %
Run sudo vim in the right pane
Inside Vim, split the window into two with :vsplit
Attempt to navigate to the left Vim split using <C-h>
The navigation keys incorrectly switch focus to the other tmux pane instead of staying within Vim.
The text was updated successfully, but these errors were encountered:
andreasacwu
changed the title
Unable to Navigate when Running sudo vim
Unable to Navigate when Running sudo vimJan 17, 2025
Hmm, it seems like running in sudo changes some things about how vim behaves. You can try the notes in the troubleshooting guide, but I wouldn't be surprised if this plugin is incompatible with running via sudo.
When using
vim-tmux-navigator
withsudo vim
, navigation does not function as expected. It seems that tmux recognizessudo
as the active process instead ofvim
, causing navigation keybindings to fail.Steps to Reproduce
<prefix> %
sudo vim
in the right pane:vsplit
<C-h>
The navigation keys incorrectly switch focus to the other tmux pane instead of staying within Vim.
The text was updated successfully, but these errors were encountered: