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
Tmux -> tmux or tmux -> vim not working #234
Comments
update: I found an .inputrc file I had forgotten about but removing it did not change things. |
Can you check the output of Related, can you check the output of Lastly, on the Vim side it looks like you have an explicit set of key bindings: "split navigations...
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H> These will conflict with tmux-navigator and should be removed. I'd be interested in the output of |
Thank you @christoomey for pointing that out and for the response. Output of
Output of
After commenting-out existing bindings (and restart)
|
I think got this to work following the instructions here: https://thoughtbot.com/blog/vim-splits-move-faster-and-more-naturally I changed: and I removed I am having this same problem, including the same output for OS: Mac OS 10.14.5 (Mojave) ~/.tmux.conf
~/.vimrc
|
PS - copied this config over to my Ubuntu machine and it worked fine. I assume the issue is related to MacOS. |
Same problem here on macOS I just added these lines to the bottom of my vimrc:
What is weird is that the TmuxNavigate* commands work if I enter them manually. |
@mschwartz Works like a charm, been looking for this |
Sorry, but it still doesn’t work for me. Oddly, if I ssh into a Linux box and tmux + vim there, it works. Same iterm2, just different host. Ctrl j does move from vim to a shell pane and back. It seems to be something specific to vim or nvim running within tmux within iterm2 on Catalina. |
@mschwartz Is it on purpose that you left out
|
Oddly, it magically started working today. It could be I rebooted, updated other software, etc. I REALLY appreciate this plugin. I use i3wm. And vim+tmux for all my editing. alt+hjkl change applications (windows) and ctrl-hjkl work within tmux session. I cannot fathom using a gui version of vim anymore. There simply isn't any editing setup as powerful and efficient as vim and tmux and this plugin. Thanks! |
D'oh. Scratch that last comment. It still fails here. I wasn't running in tmux, and outside tmux the keys work. So, bug still exists.
|
Not sure what I did to get it working but it is for me (OSX Mojave 10.14.6) .vimrc (other stuff omitted for brevity)
.tmux.conf (some stuff omitted for brevity)
|
I'm on Catalina. |
I had the same issue as OP and solved it by switching from TPM to snippet in |
Fwiw, I fixed this a month ago and my issue has to do with pipenv. I changed from this (from the README):
to this: https://github.com/sagittaros/dotfiles/blob/master/bin/isvim2 It has worked perfectly ever since. Ymmv |
I'm having what seems to be the opposite problem to some other issues here. If inside of vim, I can use the key bindings to navigate to a tmux pane. However, if I try to get back into vim or to another tmux pane, nothing works.
OS: Mac OS 10.14.5 (Mojave)
Terminal App v2.9.5
echo $TERM output in tmux session =
screen-256color
Tmux 2.9a
Vim 8.1.950
~/.tmux.conf
~/.vimrc
The text was updated successfully, but these errors were encountered: