Skip to main content
Specified tmux version used in example
Source Link
B Layer
  • 5.3k
  • 1
  • 21
  • 35

A bit of an improvement: do space, V, enter instead of 0, space, $, enter. A single V is a lot easier to type than a 0 and a $. V is equivalent to vim's "do visual mode select of entire line" command.

I can't speak to byobu directly but since it's just fronting tmux, you could also bind a key to all this in native tmux. Something like this:

bind-key -r -T copy-mode-vi Y send-keys -X begin-selection \; send-keys -X select-line \; send-keys -X copy-selection 

Then you just enter copy mode, go to the line you want to copy, press Y then Enter. The line will now be in the paste buffer. (While that's a bit long and ugly it does work for me.)

Edit: Tested with tmux 2.4

A bit of an improvement: do space, V, enter instead of 0, space, $, enter. A single V is a lot easier to type than a 0 and a $. V is equivalent to vim's "do visual mode select of entire line" command.

I can't speak to byobu directly but since it's just fronting tmux, you could also bind a key to all this in native tmux. Something like this:

bind-key -r -T copy-mode-vi Y send-keys -X begin-selection \; send-keys -X select-line \; send-keys -X copy-selection 

Then you just enter copy mode, go to the line you want to copy, press Y then Enter. The line will now be in the paste buffer. (While that's a bit long and ugly it does work for me.)

A bit of an improvement: do space, V, enter instead of 0, space, $, enter. A single V is a lot easier to type than a 0 and a $. V is equivalent to vim's "do visual mode select of entire line" command.

I can't speak to byobu directly but since it's just fronting tmux, you could also bind a key to all this in native tmux. Something like this:

bind-key -r -T copy-mode-vi Y send-keys -X begin-selection \; send-keys -X select-line \; send-keys -X copy-selection 

Then you just enter copy mode, go to the line you want to copy, press Y then Enter. The line will now be in the paste buffer. (While that's a bit long and ugly it does work for me.)

Edit: Tested with tmux 2.4

added 400 characters in body
Source Link
B Layer
  • 5.3k
  • 1
  • 21
  • 35

A bit of an improvement: do space, V, enter instead of 0, space, $, enter. A single 'V'V is a lot easier to type than a '0'0 and a '$'$. 'V'V is equivalent to vim's "do visual mode select of entire line" command.

I can't speak to byobu directly but since it's just fronting tmux, you could also bind a key to all this in native tmux. Something like this:

bind-key -r -T copy-mode-vi Y send-keys -X begin-selection \; send-keys -X select-line \; send-keys -X copy-selection 

Then you just enter copy mode, go to the line you want to copy, press Y then Enter. The line will now be in the paste buffer. (While that's a bit long and ugly it does work for me.)

A bit of an improvement: do space, V, enter instead of 0, space, $, enter. A single 'V' is a lot easier to type than a '0' and a '$'. 'V' is equivalent to vim's "do visual mode select of entire line" command.

A bit of an improvement: do space, V, enter instead of 0, space, $, enter. A single V is a lot easier to type than a 0 and a $. V is equivalent to vim's "do visual mode select of entire line" command.

I can't speak to byobu directly but since it's just fronting tmux, you could also bind a key to all this in native tmux. Something like this:

bind-key -r -T copy-mode-vi Y send-keys -X begin-selection \; send-keys -X select-line \; send-keys -X copy-selection 

Then you just enter copy mode, go to the line you want to copy, press Y then Enter. The line will now be in the paste buffer. (While that's a bit long and ugly it does work for me.)

Source Link
B Layer
  • 5.3k
  • 1
  • 21
  • 35

A bit of an improvement: do space, V, enter instead of 0, space, $, enter. A single 'V' is a lot easier to type than a '0' and a '$'. 'V' is equivalent to vim's "do visual mode select of entire line" command.