tmux combine multiple commands to one vi-copy command or tmux command to yank a line

Posted by MIkhail on Super User See other posts from Super User or by MIkhail
Published on 2012-11-08T11:22:31Z Indexed on 2012/11/09 5:06 UTC
Read the original article Hit count: 305

Filed under:

In tmux, i know we can chain multiple commands to a key by using \; See Here But in vi mode, i want one single key press to go to the beginning of the current line, begin-selection, go to end-of-line, copy-selection.

In tmux.conf if i give the following bind-key -t vi-copy 's' start-of-line \; begin-selection \; end-of-line \; copy-selection \;

It gives me this : 69: usage: bind-key [-cnr] [-t key-table] key command [arguments] error.

Or is there any alternative way to yank the current line in single key.

© Super User or respective owner

Related posts about linux

Related posts about tmux