4c2536d0f16295f607db454ec44312173b647c54
David Blume Added vim mappings to tmux.

David Blume authored 4 years ago

1) # C-b already in use by vim for page up. Use screen's prefix.
David Blume Remap tmux prefix key. C-b...

David Blume authored 4 years ago

2) set -g prefix C-a
3) unbind C-b
4) bind C-a send-prefix
David Blume Add C-a a in tmux; tweaks f...

David Blume authored 3 years ago

5) # Make ^a a send ^a (Useful in minicom)
6) bind-key a send-prefix
David Blume Added vim mappings to tmux.

David Blume authored 4 years ago

7) 
8) # No delay for escape key press (vim mode changes)
9) set -sg escape-time 0
10) 
11) # Vim style pane splitting
12) bind-key v split-window -h
13) bind-key s split-window -v
14) 
15) # Vim style pane selection
16) bind h select-pane -L
David Blume Delete some trailing whites...

David Blume authored 4 years ago

17) bind j select-pane -D
David Blume Added vim mappings to tmux.

David Blume authored 4 years ago

18) bind k select-pane -U
19) bind l select-pane -R
20) 
21) # Use Alt-vim keys without prefix key to switch panes
22) bind -n M-h select-pane -L
David Blume Delete some trailing whites...

David Blume authored 4 years ago

23) bind -n M-j select-pane -D
David Blume Added vim mappings to tmux.

David Blume authored 4 years ago

24) bind -n M-k select-pane -U
25) bind -n M-l select-pane -R
26) 
27) # Use Alt-arrow keys without prefix key to switch panes
28) bind -n M-Left select-pane -L
29) bind -n M-Right select-pane -R
30) bind -n M-Up select-pane -U
31) bind -n M-Down select-pane -D
32) 
33) # Theme
David Blume Add support for tmux; use p...

David Blume authored 4 years ago

34) set -g status-keys vi
35) set -g status-fg white
36) set -g status-bg colour235
37) set -g status-left-length 20
38) set -g status-left '#[fg=green][#S]#[default]'
39) set -g status-justify centre
40) set -g status-right '#[fg=green]%m/%d %H:%M#[default]'
David Blume Added vim style scrolling.

David Blume authored 4 years ago

41) setw -g mode-keys vi
David Blume Premature optimization: tur...

David Blume authored 4 years ago

42) setw -g automatic-rename off
David Blume By default tmux sessions co...

David Blume authored 3 years ago

43) setw -g aggressive-resize
David Blume Want the pane's path to be...

David Blume authored 4 years ago

44) set -g allow-rename on
45) #setw -g window-status-current-format '#[fg=yellow]#I:#F:#T:.../#{b:pane_current_path}#[default]'
46) setw -g window-status-current-format '#[fg=yellow]#I:#F:#{s\/home/corp.roku/dblume\~\:pane_current_path}#[default]'
David Blume Remap tmux prefix key. C-b...

David Blume authored 4 years ago

47) setw -g window-status-format '#I:#F:#W'