Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I run tmux in VI mode. VI-like navigation in copy-mode works fine. However, I can't select any text. Neither v nor V doesn't switch to VI-like text selecting mode.

What am I missing?

By the way, is it possible to display line numbers in copy-mode?

P.S. if it makes any difference, I'm running tmux on Mac OS w/ ZSH shell

share|improve this question
up vote 56 down vote accepted

Short answer: space starts selection and enter copies.

For future reference, I got this from the tmux man page:

       Function                vi             emacs
       Back to indentation     ^              M-m
       Clear selection         Escape         C-g
       Copy selection          Enter          M-w
       Cursor down             j              Down
       Cursor left             h              Left
       Cursor right            l              Right
       Cursor to bottom line   L
       Cursor to middle line   M              M-r
       Cursor to top line      H              M-R
       Cursor up               k              Up
       Delete entire line      d              C-u
       Delete to end of line   D              C-k
       End of line             $              C-e
       Goto line               :              g
       Half page down          C-d            M-Down
       Half page up            C-u            M-Up
       Next page               C-f            Page down
       Next word               w              M-f
       Paste buffer            p              C-y
       Previous page           C-b            Page up
       Previous word           b              M-b
       Quit mode               q              Escape
       Scroll down             C-Down or J    C-Down
       Scroll up               C-Up or K      C-Up
       Search again            n              n
       Search backward         ?              C-r
       Search forward          /              C-s
       Start of line           0              C-a
       Start selection         Space          C-Space
       Transpose chars                        C-t
share|improve this answer

You use space bar for the beginning of the selection and enter for the end.


  • Ctrlb[
  • Space
  • Enter


  • Ctrlb]
share|improve this answer
This should be the answer. It could be improved by explaining entering/leaving copy mode. – mcsilvio Mar 25 '15 at 1:19

You can also set up your .tmux.conf file by adding :

bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection

which will enable 'v' and 'y' to enter visual mode and copy, like in vim.


share|improve this answer
I'm getting "command not found: bind-key" in tmux 1.9a – Olivier Lalonde Jan 9 '15 at 7:01
Oops, I put it in my .zshrc by accident, nvm :) – Olivier Lalonde Jan 9 '15 at 7:06

I find entering vi mode easily do be my bottleneck for which I use the following:

setw -g mode-keys vi
set-window-option -g mode-keys vi  
unbind [
bind-key -n F2 copy-mode
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .