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

Cannot navigate between vim windows on OSX #127

Open
tieubao opened this issue May 21, 2016 · 13 comments
Open

Cannot navigate between vim windows on OSX #127

tieubao opened this issue May 21, 2016 · 13 comments

Comments

@tieubao
Copy link

tieubao commented May 21, 2016

screen shot 2016-05-21 at 3 51 40 pm

I already install vim-tmux-navigator plugin, but I can't use the hotkey to navigate around. Using :TmuxNavigateLeft ... is good.

Everything is ok outside of tmux.

My env:

  • Mac OSX
  • Outside of TMUX: echo $TERM ---> xterm-256color
  • Inside of TMUX: echo $TERM ---> screen-256color
@blueyed
Copy link
Collaborator

blueyed commented May 21, 2016

Does it affect all mapping, or only some of them?

@tieubao
Copy link
Author

tieubao commented May 21, 2016

@blueyed right now, only for navigation mappings

@blueyed
Copy link
Collaborator

blueyed commented May 21, 2016

@tieubao
So for all mappings from tmux-navigator? (I was referring to if e.g. only C-h would not work)

@tieubao
Copy link
Author

tieubao commented May 21, 2016

@blueyed all C-l, C-h, C-j, C-k

@blueyed
Copy link
Collaborator

blueyed commented May 21, 2016

Please try if #117 helps.
Also check that you've setup tmux correctly (which is different in #117): tmux list-keys | grep -i vim.

@tieubao
Copy link
Author

tieubao commented May 21, 2016

@blueyed I added those lines in .tmux.conf

bind -n C-h run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_title}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"

@blueyed
Copy link
Collaborator

blueyed commented May 21, 2016

Yeah, you would need to debug it from there, e.g. by adding some display-message there etc.
But I suggest trying this based on #117.

@fuadsaud
Copy link

been experiencing the same recently

@oblitum
Copy link

oblitum commented Sep 3, 2016

I'm running Vim on Bash On Windows (WSL) and I'm having the same issue there too.

@lucasprag
Copy link

I got the exact same problem as @tieubao oO

@thomascarreau
Copy link

thomascarreau commented Dec 12, 2016

Same issue over here (Debian Stretch).

@oblitum
Copy link

oblitum commented Dec 22, 2016

I'm running Vim on Bash On Windows (WSL) and I'm having the same issue there too.

I'm now running wsl-terminal (based on mintty) and have no issues anymore :-)

@mschwartz
Copy link

I am experiencing this now.

latest iterm2, neovim installed from homebrew.

.tmux.conf:

 ~  cat ~/.tmux.conf
set-environment -g PATH "/usr/local/bin:/usr/bin"
# bind leader/prefix to C-a instead of C-b
unbind C-b
set -g prefix C-a
bind C-a send-prefix

^A r shows

~/.tmux/plugins/tpm/tpm returned 127

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

7 participants