Skip to content

Commit

Permalink
updated the copy-mode keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Torsten Trautwein committed Apr 27, 2017
1 parent e3c566f commit 37d9c79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tmux.conf
Expand Up @@ -16,12 +16,12 @@ set -g mouse on
setw -g mode-keys vi

# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi v begin-selection
bind-key -T copy-mode-vi y copy-pipe "reattach-to-user-namespace pbcopy"

# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter copy-pipe "reattach-to-user-namespace pbcopy"

# Open new/split windows in the current pane's path
bind c new-window -c "#{pane_current_path}"
Expand Down

0 comments on commit 37d9c79

Please sign in to comment.