tmux copy mode - select text block
Problem
I'm using tmux with vi keys, and copy/paste works fine as long as you're selecting one line of text, or if you have only one window. When I want to select a block of text (multiple lines, but not full width), then I run into trouble. If I have multiple vim windows opened, then it would select text from all of them, and what I need is to select text only from one window. That is, just like a visual select in vim. Is this possible to do?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: tmux copy mode - select text block
Make sure to check the bottom of this post for necessary bindings that need to go into your .tmux.conf file. I am assuming your prefix key is C-a: C-a means: press Ctrl + A C-a [ means: press Ctrl + A then press [ To do a rectangle selection of text from (1,1) to (2,2) in tmux: Go to the copy mode: C-a [ Move the middle of a line Press C-v Press Space Move the selection with jkhl Once you are happy with your selection press Enter (or y if you have the binding in your conf file). You can paste t…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix