Ctrlu cuts text from current location to the beginning of line.

Now, I can paste this with Ctrly whenever I want until the next time I hit Ctrlu to copy another line in the buffer.

Now the problem I want to solve is that I want to have multiple copy buffers of Ctrlu that I could use for later use

What are the ways I could achieve this with keyboard shortcuts?

1 Answer 1


Whatever you get into killring is there. Then Ctrly to yank and Alty to rotate the yank.

The function is called yank-pop. You can find it in man pages readline(3)


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .