Skip to content

Instantly share code, notes, and snippets.

@undoZen
Created February 13, 2014 08:26
Show Gist options
  • Save undoZen/8971669 to your computer and use it in GitHub Desktop.
Save undoZen/8971669 to your computer and use it in GitHub Desktop.
# Use vim keybindings in copy mode
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"
# 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment