Created
July 8, 2013 23:34
-
-
Save scutdavy/5953396 to your computer and use it in GitHub Desktop.
tmux config.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 ¬ | |
1 # Reload the .tmux.conf file with Ctrl-r¬ | |
2 bind-key r source-file ~/.tmux.conf \; display-message "Configuration reloaded"""¬ | |
3 ¬ | |
4 # start window index of 1 instead of 0¬ | |
5 set-option -g base-index 1¬ | |
6 ¬ | |
7 # # Start panes at 1 instead of 0. tmux 1.6 only¬ | |
8 setw -g pane-base-index 1¬ | |
9 ¬ | |
10 # UTF-8 character support in the status bar¬ | |
11 set-option -g status-utf8 on¬ | |
12 ¬ | |
13 # Lowers the delay time between the prefix key and other keys - fixes pausing in vim¬ | |
14 set-option -sg escape-time 1¬ | |
15 ¬ | |
16 # When in Copy mode, act like vim¬ | |
17 set-window-option -g mode-keys vi¬ | |
18 ¬ | |
19 set -g default-terminal "screen-256color"¬ | |
20 ¬ | |
21 ¬ | |
22 bind h select-pane -L¬ | |
23 bind j select-pane -D¬ | |
24 bind k select-pane -U¬ | |
25 bind l select-pane -R¬ | |
26 ¬ | |
27 # Cycle windows with Ctrl-h and Ctrl-l¬ | |
28 bind-key -r C-h select-window -t :-¬ | |
29 bind-key -r C-l select-window -t :+¬ | |
30 ¬ | |
31 setw -g mode-keys vi¬ | |
32 ¬ | |
33 # resize panes like vim¬ | |
34 # # feel free to change the "1" to however many lines you want to resize by,¬ | |
35 ¬ | |
36 # # only one at a time can be slow¬ | |
37 bind-key -r J resize-pane -D 5¬ | |
38 bind-key -r K resize-pane -U 5¬ | |
39 bind-key -r H resize-pane -L 5¬ | |
40 bind-key -r L resize-pane -R 5¬ | |
41 ¬ | |
42 # # Rebinding the pane splitting bindings | and - ¬ | |
43 bind | split-window -h¬ | |
44 bind - split-window -v¬ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment