Fixed tmux intergration with vim and added glsl syntax highlighter

This commit is contained in:
2015-08-02 20:19:36 +02:00
parent 5de186f313
commit e9a18f5322
8 changed files with 20 additions and 11 deletions

View File

@@ -9,10 +9,13 @@ set -s escape-time 0
unbind C-b
set -g prefix C-a
bind -n M-k run-shell 'tmux-vim-select-pane -U'
bind -n M-j run-shell 'tmux-vim-select-pane -D'
bind -n M-h run-shell 'tmux-vim-select-pane -L'
bind -n M-l run-shell 'tmux-vim-select-pane -R'
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"'
bind -n M-h if-shell "$is_vim" "send-keys M-h" "select-pane -L"
bind -n M-j if-shell "$is_vim" "send-keys M-j" "select-pane -D"
bind -n M-k if-shell "$is_vim" "send-keys M-k" "select-pane -U"
bind -n M-l if-shell "$is_vim" "send-keys M-l" "select-pane -R"
bind -n M-\ if-shell "$is_vim" "send-keys M-\\" "select-pane -l"
bind -n C-j new-window
bind -n C-h prev
bind -n C-l next