-
Notifications
You must be signed in to change notification settings - Fork 342
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
Can't move from vim to tmux with fish as shell #148
Comments
@scolby33 sorry to hear about the trouble. Based on the fact that you can move within splits, I don't believe the Vim detection is the problem. Instead, it sounds like the Vim plugin code is not properly detecting when you're at the wall. Can you describe what happens when you attempt to navigate from Vim to tmux? Is it nothing, or do you move to a different Vim split? Also, would you mind running with just the plugin active (no vimrc) using the following command: vim -U NONE -c 'source ~/.vim/bundle/tmux-navigator/plugin/tmux_navigator.vim' |
If I am already at the "edge" of vim and attempt to navigate out to tmux, nothing happens. Running with just the plugin active did not solve the issue. However, I am using if &shell =~# 'fish$'
set shell=sh
endif This is a bit surprising because (in only a cursory look, admittedly), I don't see why the plugin's attempts to call out to the shell would be hindered by |
Depending on the version of the plugin you're using, we might have introduced an env variable into the |
With fish as the shell, this returns I am using the most recent plugin version installed by Vundle. |
Can you try running the following?
|
With the Without the workaround, again nothing was echoed in step (2) and the tmux pane was not switched. Step (3) returned Just running |
Hmm, well unfortunately I'm out of ideas. Feel free to poke around and share back if you are able to track anything down. Sorry I couldn't be of more help. |
I figured it out! Here are my observations:
Running I will make a pull request momentarily with my suggested change. |
I am having a similar issue as #141, but in my case
:TmuxPaneCurrentCommand
does outputvim
. Otherwise, the plugin and configuration work perfectly: movement between vim splits, movement between tmux panes, and movement from tmux panes to vim.I know it is not the key bindings; running
:TmuxNavigate{Up|Left|Down|Right}
manually moves between vim splits successfully but will not move out of vim into tmux.OS X 10.11.6
Vim 7.4
tmux 2.2
iTerm2 3.0.7
The text was updated successfully, but these errors were encountered: