Table of Contents
Copy Mode
Copy Mode allows you to make selections using the keyboard. To enter or exit Copy Mode, select Edit > Copy Mode. A special cursor rendered as a downward-pointing arrow is visible while in Copy Mode.
While in Copy Mode, the session's contents will not change. You can use the keyboard to move the cursor and modify the selection using these keystrokes:
Changing Modes
Keystroke | Action |
---|---|
C-space | Stop selecting |
Esc, q, C-c, C-g | Exit copy mode |
C-v | Toggle rectangular selection |
Space, v | Toggle selection by character |
V | Toggle selection by line |
Basic Movement
Keystroke | Action |
---|---|
h, Left arrow | Move left |
j, Down arrow | Move down |
k, Up arrow | Move up |
l, Right arrow | Move right |
Content-Based Movement
Keystroke | Action |
---|---|
Meta-Left arrow, M-b, Shift-tab, b | Move back one word |
M-Right arrow, M-f, Tab, w | Move forward one word |
[ | Move to previous mark |
] | Move to next mark |
Screen Movement
Keystroke | Action |
---|---|
C-b, Page Up | Move up one screen |
C-f, Page Down | Move down one screen |
H | Move to top of visible area |
M | Move to middle of visible area |
L | Move to bottom of visible area |
Line Movement
Keystroke | Action |
---|---|
^, M-m | Move to start of indentation |
0 | Move to start of line |
$ | Move to end of line |
Return | Move to start of next line |
Document Movement
Keystroke | Action |
---|---|
g | Move to start |
G | Move to end |
Other Commands
Keystroke | Action |
---|---|
o | Swap cursor and other selection endpoint |
C-k, y | Copy selection |