tmux doesn’t support true rectangular (blockwise) selection in copy mode the same way Vim does. When you enter copy mode with vi keys (usually Ctrl+b [), tmux treats text as a continuous stream, so if you have multiple panes visible, it will scroll across all visible text regions.
To copy text from just one Vim pane (or any single tmux pane), you have a few options:
-
Focus the specific pane first
Make sure you’re in the pane you want to copy from before entering copy mode:
(Shows pane numbers, select the one you want with its number key.)
Then enter copy mode:
Now tmux will only select text within that focused pane.
-
Use Vim’s own visual block mode
Since you’re using Vim inside tmux, it’s often easier to rely on Vim’s native selection. In Vim:
Move the cursor to select, then:
This is usually smoother for multi-line partial selections.
-
If you really need rectangular selection in tmux itself
You can emulate it by enabling mouse mode and selecting text directly with the mouse:
Then hold Shift and drag with the mouse to select only within one pane (depends on your terminal).
Unfortunately, tmux’s copy mode itself doesn’t have native blockwise selection support like Vim’s Ctrl+v visual block mode. For precise rectangular copying, Vim’s visual block or an external tool like reptyr or xclip with mouse support is the more reliable choice.