update vundle, update tmux and vimrc to allow cross-split navigation

This commit is contained in:
Haak Saxberg 2014-03-21 16:59:55 -07:00
parent 4d870a9a9c
commit f224133df2
3 changed files with 9 additions and 8 deletions

View file

@ -35,3 +35,10 @@ set -g mouse-select-window on
# big scrollback
set -g history-limit 10240
# smart pane switching with awareness of vim 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"