Skip to content

Instantly share code, notes, and snippets.

@andersonbosa
Forked from ekiara/TMUX_COPY_PASTE_BUFFER
Created March 31, 2022 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andersonbosa/116f0aab04304f92bfe338a47708d20e to your computer and use it in GitHub Desktop.
Save andersonbosa/116f0aab04304f92bfe338a47708d20e 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