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?


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)

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.