Skip to content

Instantly share code, notes, and snippets.

@ekiara
Created March 29, 2014 05:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ekiara/9848785 to your computer and use it in GitHub Desktop.
Save ekiara/9848785 to your computer and use it in GitHub Desktop.
Copy and Paste Buffers in TMUX
#### http://awhan.wordpress.com/2010/06/20/copy-paste-in-tmux/
#### emacs style copy in tmux
1) enter copy mode using Control+b [
2) navigate to beginning of text, you want to select and hit Control+Space
3) move around using arrow keys to select region
4) when you reach end of region simply hit Alt+w to copy the region
5) now Control+b ] will paste the selection
#### vim/vi style copy in tmux
#### setw -g mode-keys vi
1) enter copy mode using Control+b [
2) navigate to beginning of text, you want to select and hit Space
3) move around using arrow keys to select region
4) when you reach end of region simply hit Enter to copy the region
5) now Control+b ] will paste the selection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment