dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

commit 1bb4b034c60f0d34e74437426e034d4ca6284fee
parent 06b889f3461dd7dbdcade7ff0368f8e339483f21
Author: Dionysis Grigoropoulos <info@erethon.com>
Date:   Thu, 13 Nov 2014 12:59:50 +0200

tmux: Remap copy mode, pane, and window navigation

* Use C-a H/L for pane navigation
* Use C-a h/l for window navigation
* Enter copy mode with C-a v too

Diffstat:
.tmux.conf | 15+++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -13,14 +13,14 @@ bind-key C-a last-window bind r source-file ~/.tmux.conf # Pane navigation based on vi's hjkl -unbind-key j bind-key -r j select-pane -D -unbind-key k bind-key -r k select-pane -U -unbind-key h -bind-key -r h select-pane -L -unbind-key l -bind-key -r l select-pane -R +bind-key -r H select-pane -L +bind-key -r L select-pane -R + +# Window navigation using h/l +bind-key -r l next-window +bind-key -r h previous-window # Vim-like pane resizing bind-key -r '=' resize-pane -U 5 @@ -34,6 +34,9 @@ bind-key m command-prompt -p "[ man page ]" "split-window 'exec man %%'" # Vertical split with ^A' instead of ^A% bind-key "'" split-window -h +# Use 'C-a v' to enter copy mode +bind-key v copy-mode + # Use 'v' and 'y' to select and copy text bind-key -t vi-copy 'v' begin-selection bind -t vi-copy y copy-pipe 'xclip -in > /dev/null'