X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.tmux.conf;h=2ac48a85204537e90350bcd7cff820564fc90842;hp=8e27609818ef9e7206d6482eb18d8729d038682b;hb=30ba91ea743ae646c52e50d6a540c64862e0ea10;hpb=023ace4cee5028e65f80867e2181dc801145783a diff --git a/.tmux.conf b/.tmux.conf index 8e27609..2ac48a8 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,6 +1,10 @@ ################################################################################ # Options. ################################################################################ +# Start in home. The documentation says ~ is supported but tmux 1.7 +# barfs on it. +set -g default-path "$HOME" + # Use vi keys for scrolling etc. # Use lsk -t vi|emacs- to see binds in table choice, copy or edit. setw -g mode-keys vi @@ -66,16 +70,18 @@ bind -r L next-window # Last window like Vim. bind ^ last-window bind C-^ last-pane +bind C-o last-pane # Top and bottom. bind J select-pane -D bind K select-pane -U # Swap panes. bind o swap-pane -D -bind -r C-o swap-pane -D bind -r O swap-pane -U bind w command-prompt -p "Select [.] to swap:" 'swap-pane -s . -t %1' # Swap windows. bind W choose-window "swap-window -t '%%'" +# Renumber windows. +bind M-w move-window -r -s : -t : # Show panes. bind = display-panes # Move the current pane into a separate window. @@ -135,7 +141,10 @@ bind { copy-mode -u bind '"' list-buffers \; command-prompt -p "Choose buffer to show:" 'show-buffer -b %1' bind "'" new-window -n "[buffer]" "cat > /dev/null" \; paste-buffer # Toggle mouse mode as it is useful despite the flaws listed above. -bind C-m set -g mouse-resize-pane \; set -g mouse-select-pane \; set -g mouse-select-window \; set -g mode-mouse +# As of tmux 1.7 mode-mouse has three possible values so we can no +# longer use an implied toggle. +bind C-m set -g mouse-resize-pane on \; set -g mouse-select-pane on \; set -g mouse-select-window on \; set -g mode-mouse copy-mode +bind M-m set -g mouse-resize-pane off \; set -g mouse-select-pane off \; set -g mouse-select-window off \; set -g mode-mouse off ################################################################################ # Fix missing binds in Vi modes. @@ -171,7 +180,7 @@ set -g message-command-bg colour88 set -g message-command-fg white # Active pane set -g pane-active-border-bg default -set -g pane-active-border-fg white +set -g pane-active-border-fg colour31 # Inactive pane. set -g pane-border-bg default set -g pane-border-fg colour17