Using tmux copy mode just like vim

I'm trying make use of the copy mode of tmux to copy some part of text in one of my panes but I cannot really manage with it, spacebar is not working to select the text and I'm getting a bit lost.

Does somebody know how to set tmux to behave similary to vim? (moving with h,j,k,l , yanking with y , Visual Mode kind of selecting....)

1 Answer

You need to set mode-keys to vi (the default is emacs):

set -g mode-keys vi

You should put this in .tmux.conf and either restart tmux entirely (tmux kill-server) or also run it from the command prompt (C-b :).

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like