1b06cf6034a0b617aab7b490a120e8266438668e
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
David Blume tmux status line pane refin...

David Blume authored 3 years ago

37) set -g status-left-length 10
dblume Tighten status line with tm...

dblume authored 2 years ago

38) set -g status-left "#[fg=green]#{?#{!=:#{window_panes},1},pane #P/#{window_panes},}#[default]"
David Blume Add support for tmux; use p...

David Blume authored 4 years ago

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
dblume Turn off allow-rename, dupl...

dblume authored 2 years ago

44) #set -g allow-rename on  ## ssh'ed servers may rename window to PS1, duplicating path
David Blume Want the pane's path to be...

David Blume authored 4 years ago

45) #setw -g window-status-current-format '#[fg=yellow]#I:#F:#T:.../#{b:pane_current_path}#[default]'
dblume Tighten status line with tm...

dblume authored 2 years ago

46) setw -g window-status-current-format '#{?#{!=:#{session_windows},1},#I:#W:,}#[fg=yellow]#{?window_zoomed_flag,Z:,}#{s\/home/dblume\~\:pane_current_path}#[default]'
dblume Better status for tmux wind...

dblume authored 2 years ago

47) setw -g window-status-format '#[fg=colour241]#I:#W#[default]'