Created
April 10, 2015 00:53
-
-
Save andrew-carroll/44c3f4dfc5870dd86946 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setw -g mode-keys vi | |
set -g status-keys vi | |
bind-key -t vi-edit Up history-up | |
bind-key -t vi-edit Down history-down | |
bind-key | split-window -h | |
bind-key - split-window -v | |
is_vim='echo "#{pane_current_command} | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"' | |
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" | |
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" | |
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" | |
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" | |
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment