Fixed tmux intergration with vim and added glsl syntax highlighter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user