Seemless pane navigation doesn't work for me.

I want to be able to manage multiple tmux sessions.
This commit is contained in:
Max Bucknell 2015-05-09 15:40:31 +01:00
parent 2011a8be90
commit 2d7d8594a0
2 changed files with 5 additions and 6 deletions

View file

@ -128,7 +128,6 @@ install_vim_plugins () {
"pangloss/vim-javascript"
"JulesWang/css.vim"
"genoma/vim-less"
"christoomey/vim-tmux-navigator"
)
local BASE_DIR="$DOTFILES_ROOT/vim/vim.symlink/bundle"
local GIT_HOST="git@github.com"

View file

@ -4,11 +4,11 @@ set -g prefix C-a
# smart pane switching with awareness of vim splits
#
# See: https://robots.thoughtbot.com/seamlessly-navigate-vim-and-tmux-splits
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
bind C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
bind C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
bind C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
# easily toggle synchronization (mnemonic: e is for echo)
bind e setw synchronize-panes on