From f181bf80b868865c07df15906a7b5ab568ed775c Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 26 Apr 2015 13:06:02 +0100 Subject: Tmux shortcuts --- mutt/muttrc | 2 +- tmux.conf | 10 +++++++--- vimrc | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/mutt/muttrc b/mutt/muttrc index 32f033e..73dca3e 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -25,7 +25,7 @@ set status_format = "───( Folder: %f )───(%r%m messages%?n? (%n new) (%d to delete)?%?t? (%t tagged)? )───%>─%?p?( %p postponed )?───" # Headers -ignore * +# ignore * # unignore from: to: cc: date: subject: # unhdr_order * # hdr_order from: to: cc: date: subject: diff --git a/tmux.conf b/tmux.conf index 577b997..4d23b17 100644 --- a/tmux.conf +++ b/tmux.conf @@ -13,6 +13,8 @@ bind r source-file ~/.tmux.conf set -s escape-time 0 set-option -g allow-rename off +source-file ~/.tmuxlinerc + set -g @tpm_plugins ' \ tmux-plugins/tpm \ tmux-plugins/tmux-sensible \ @@ -20,8 +22,7 @@ set -g @tpm_plugins ' \ ' set -g @resurrect-strategy-vim 'session' - -run-shell '~/.tmux/plugins/tpm/tpm' +set -g @resurrect-processes '"grunt->grunt serve"' 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" @@ -29,4 +30,7 @@ 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" -source-file ~/.tmuxlinerc +bind-key -n C-S-Left swap-window -t -1 +bind-key -n C-S-Right swap-window -t +1 + +run-shell '~/.tmux/plugins/tpm/tpm' diff --git a/vimrc b/vimrc index a9db890..cca4dd1 100644 --- a/vimrc +++ b/vimrc @@ -59,6 +59,7 @@ let g:airline_section_x = '' let g:airline_section_y = '' let g:airline_section_z = '%3p%%|%3l|%3c' let g:airline_theme='solarized' +let g:airline#extensions#tabline#enabled = 1 let g:bufferline_active_buffer_left = '' let g:bufferline_active_buffer_right = '' -- cgit v1.2.3