X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.tmux.conf;h=e834f093021796305208d716380736bc621b472f;hb=094bc317ad7d7907a5c87477530db4d24bf1c534;hp=f46cae1f1f643111efe60500a9429be584e86675;hpb=d888ac6b277e2ff5feb8610bbdc8ae775cef56e5;p=profile.git diff --git a/.tmux.conf b/.tmux.conf index f46cae1..e834f09 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -13,12 +13,16 @@ set -s escape-time 100 setw -g clock-mode-colour white setw -g clock-mode-style 24 +# Scrollback buffer. +set -g history-limit 4096 + ################################################################################ # Screen compatibility. ################################################################################ set -g prefix C-p unbind C-b bind C-p last-window +bind p send-keys C-p bind C-l refresh-client bind l refresh-client bind S split-window -v @@ -39,17 +43,20 @@ bind j select-pane -D bind C-j select-pane -D bind k select-pane -U bind C-k select-pane -U -# Previous and next window kinda like Vim. -bind h previous-window -bind C-h previous-window -bind l next-window -bind C-l next-window -# And for panes. -bind H select-pane -L -bind L select-pane -R +# Previous and next panes kinda like Vim. +bind h select-pane -L +bind C-h select-pane -L +bind l select-pane -R +bind C-l select-pane -R +# And for windows. +bind H previous-window +bind L next-window +# Last window like Vim. +bind ^ last-window +bind C-^ last-pane # Top and bottom. -bind J select-pane -t bottom -bind K select-pane -t top +bind J select-pane -D +bind K select-pane -U # Swap panes. bind w swap-pane # Show panes. @@ -58,6 +65,8 @@ bind = display-panes bind b break-pane # Split another pane into this window. bind B command-prompt -p "Select [.] to join:" 'join-pane -s %1' +# Split vertically. +bind C-\ split-window -v # Next pane. bind i select-pane -t :.+ bind C-i select-pane -t :.+ @@ -107,7 +116,7 @@ bind -t vi-copy y copy-selection ################################################################################ set -g default-terminal 'screen-256color' # PuTTY needs help to set bold colours. -set -g terminal-overrides 'putty-256color:C8' +set -a -g terminal-overrides ',putty-256color:C8' ################################################################################ # Window and pane settings.