awitney
awitney

Reputation: 21

Copy lines longer than terminal window

Is it possible to copy a line that extends past the edge of the viewable window in GNU screen?

When I press Ctrl-a [ and then hit space, I can only move to the edge of the visible window, even though the line extends further. I am trying to copy a line from a file open in vim and then paste it into a different screen.

Thanks for any help!

Upvotes: 1

Views: 417

Answers (1)

schurik
schurik

Reputation: 7928

in vim you can use * buffer to copy into the clipboard and V to mark the whole line: thus im normal mode press:

V"*y

to copy the line under cursor into the clipboard

Upvotes: 3

Related Questions