Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

TMUX Version : tmux 1.7

Terminal : gnome-terminal version 3.6.1

Configuration file contents ~/.tmux.conf :


set-window-option -g mode-keys vi

set-option -g status-keys vi


When I enter 'copy-mode', select text and copy selection, it leave 'copy-mode' and switch to normal mode. Expected behaviour is to continue 'copy-mode' until we leave it by pressing 'q'.

Following are step I am following :

1) Open terminal and execute some command like 'ls /etc/'

2) Now enter into copy mode by pressing "Ctrl-b [" ( control-b followed by [)

3) Goto to desired location with navigation keys.

4) Now begin selection by pressing "Space" key. Use navigation keys for desired text selection.

5) Press 'Enter' to copy selection.

When we press 'Enter', it will copy selection, leave copy-mode and return to normal mode. I am expecting copy-mode to continue until I press 'q' to abort copy-mode. If I wanted to navigate through scroll buffer further, I need enter into copy-mode again.

Following is key binding listing for vi-copy mode (by default)

$ tmux list-keys -t vi-copy

bind-key -t vi-copy C-b page-up

bind-key -t vi-copy C-c cancel

bind-key -t vi-copy C-e scroll-down

bind-key -t vi-copy C-f page-down

bind-key -t vi-copy C-h cursor-left

bind-key -t vi-copy Enter copy-selection

bind-key -t vi-copy C-y scroll-up

bind-key -t vi-copy Escape clear-selection

bind-key -t vi-copy Space begin-selection

bind-key -t vi-copy $ end-of-line

bind-key -t vi-copy , jump-reverse

bind-key -t vi-copy / search-forward

bind-key -t vi-copy 0 start-of-line

bind-key -t vi-copy 1 start-number-prefix

bind-key -t vi-copy 2 start-number-prefix

bind-key -t vi-copy 3 start-number-prefix

bind-key -t vi-copy 4 start-number-prefix

bind-key -t vi-copy 5 start-number-prefix

bind-key -t vi-copy 6 start-number-prefix

bind-key -t vi-copy 7 start-number-prefix

bind-key -t vi-copy 8 start-number-prefix

bind-key -t vi-copy 9 start-number-prefix

bind-key -t vi-copy : goto-line

bind-key -t vi-copy ; jump-again

bind-key -t vi-copy ? search-backward

bind-key -t vi-copy B previous-space

bind-key -t vi-copy D copy-end-of-line

bind-key -t vi-copy E next-space-end

bind-key -t vi-copy F jump-backward

bind-key -t vi-copy G history-bottom

bind-key -t vi-copy H top-line

bind-key -t vi-copy J scroll-down

bind-key -t vi-copy K scroll-up

bind-key -t vi-copy L bottom-line

bind-key -t vi-copy M middle-line

bind-key -t vi-copy N search-reverse

bind-key -t vi-copy T jump-to-backward

bind-key -t vi-copy W next-space

bind-key -t vi-copy ^ back-to-indentation

bind-key -t vi-copy b previous-word

bind-key -t vi-copy e next-word-end

bind-key -t vi-copy f jump-forward

bind-key -t vi-copy g history-top

bind-key -t vi-copy h cursor-left

bind-key -t vi-copy j cursor-down

bind-key -t vi-copy k cursor-up

bind-key -t vi-copy l cursor-right

bind-key -t vi-copy n search-again

bind-key -t vi-copy q cancel

bind-key -t vi-copy t jump-to-forward

bind-key -t vi-copy v rectangle-toggle

bind-key -t vi-copy w next-word

bind-key -t vi-copy BSpace cursor-left

bind-key -t vi-copy NPage page-down

bind-key -t vi-copy PPage page-up

bind-key -t vi-copy Up cursor-up

bind-key -t vi-copy Down cursor-down

bind-key -t vi-copy Left cursor-left

bind-key -t vi-copy Right cursor-right

bind-key -t vi-copy C-Up scroll-up

bind-key -t vi-copy C-Down scroll-down


Is it default behaviour ?

If yes then how can I change it ?

Any expert opinion will be helpful.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.