Skip to content

Commit

Permalink
tmux: updated keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Hilburn committed May 27, 2016
1 parent 242d7f1 commit 6d4b453
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions tmux/tmux.conf
Expand Up @@ -5,9 +5,6 @@
set -g utf8
set-window-option -g utf8 on

# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection

# large history
set-option -g history-limit 10000

Expand All @@ -22,6 +19,8 @@ set-option -g pane-active-border-fg green
# basic settings
set-window-option -g xterm-keys on
set-window-option -g mode-keys vi
setw -g mode-keys vi

set-window-option -g monitor-activity on
set-window-option -g window-status-current-fg white
setw -g window-status-current-attr reverse
Expand Down Expand Up @@ -77,6 +76,10 @@ unbind Up
unbind Down
unbind Left
unbind Right
unbind [
unbind ]
unbind p
unbind b

############################################################################
# Bindings
Expand All @@ -103,6 +106,15 @@ bind-key -n C-left prev
bind-key -n C-right next
bind-key -n C-down next

# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection

# paste buffer
bind-key p paste-buffer

# copy mode
bind-key b copy-mode

############################################################################
# windows
############################################################################
Expand All @@ -129,9 +141,6 @@ bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R

# use vim motion keys while in copy mode
setw -g mode-keys vi

############################################################################
# layouts
############################################################################
Expand Down

0 comments on commit 6d4b453

Please sign in to comment.