tmux.conf 1.1 KB

12345678910111213141516171819202122
  1. set -g mouse on
  2. # List of plugins
  3. set -g @plugin 'tmux-plugins/tpm'
  4. set -g @plugin 'tmux-plugins/tmux-sensible'
  5. set -g @plugin 'christoomey/vim-tmux-navigator'
  6. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  7. run '~/.dotfiles/external/tpm/tpm'
  8. # Clear the pane and it's history
  9. bind -n C-k send-keys C-l \; clear-history
  10. # smart pane switching with awareness of vim splits
  11. bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
  12. bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
  13. bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
  14. bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
  15. bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
  16. # C-l is taken over by vim style pane navigation
  17. bind C-l send-keys 'C-l'