f969c293d2892fb3c8f0d1b554d61a4bd95b10e7
David Blume Added vim mappings to tmux.

David Blume authored 3 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 3 years ago

2) set -g prefix C-a
3) unbind C-b
4) bind C-a send-prefix
David Blume Added vim mappings to tmux.

David Blume authored 3 years ago

5) 
6) # No delay for escape key press (vim mode changes)
7) set -sg escape-time 0
8) 
9) # Vim style pane splitting
10) bind-key v split-window -h
11) bind-key s split-window -v
12) 
13) # Vim style pane selection
14) bind h select-pane -L
15) bind j select-pane -D 
16) bind k select-pane -U
17) bind l select-pane -R
18) 
19) # Use Alt-vim keys without prefix key to switch panes
20) bind -n M-h select-pane -L
21) bind -n M-j select-pane -D 
22) bind -n M-k select-pane -U
23) bind -n M-l select-pane -R
24) 
25) # Use Alt-arrow keys without prefix key to switch panes
26) bind -n M-Left select-pane -L
27) bind -n M-Right select-pane -R
28) bind -n M-Up select-pane -U
29) bind -n M-Down select-pane -D
30) 
31) # Theme
David Blume Add support for tmux; use p...

David Blume authored 3 years ago

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

David Blume authored 3 years ago

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

David Blume authored 3 years ago

40) setw -g automatic-rename off
David Blume Want the pane's path to be...

David Blume authored 3 years ago

41) set -g allow-rename on
42) #setw -g window-status-current-format '#[fg=yellow]#I:#F:#T:.../#{b:pane_current_path}#[default]'
43) 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 3 years ago

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