You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
908 B

  1. # same prefix as `screen`
  2. set -g prefix C-a
  3. unbind C-b
  4. # 0-indexed is not keyboard friendly
  5. set -g base-index 1
  6. set -g pane-base-index 1
  7. # misc features
  8. set -s escape-time 1
  9. setw -g mode-keys vi
  10. setw -g mode-mouse on
  11. # reload
  12. bind r source-file ~/.tmux.conf \; display "Reloaded!"
  13. # send C-a
  14. bind C-a send-prefix
  15. # status bar
  16. #
  17. set -g status-utf8 on
  18. set -g monitor-activity on
  19. set -g visual-activity on
  20. # sessions
  21. #
  22. bind -r ( switch-client -p
  23. bind -r ) switch-client -n
  24. # windows
  25. #
  26. bind -r b select-window -t :-
  27. bind -r n select-window -t :+
  28. # panes
  29. #
  30. bind | split-window -h
  31. bind - split-window -v
  32. bind h select-pane -L
  33. bind j select-pane -D
  34. bind k select-pane -U
  35. bind l select-pane -R
  36. bind -r H resize-pane -L 5
  37. bind -r J resize-pane -D 5
  38. bind -r K resize-pane -U 5
  39. bind -r L resize-pane -R 5
  40. # buffers
  41. #
  42. bind = paste-buffer
  43. bind -t vi-copy 'v' begin-selection
  44. bind -t vi-copy 'y' copy-selection