I have two buffers. I want to copy the line 2, 5, 9 and 10 in the first buffer to the second buffer(just append to the second buffer). Except copy and past one line at a time, is there any elegant way to do so?
You can use the command append-next-kill
, bound to C-M-w
, to add more text to the latest entry on the kill ring. Use it right before a M-w
command, something like this:
C-SPC
, C-n
, M-w
C-SPC
, C-n
, C-M-w
, M-w
...and so on.
When you yank the text with C-y
, you'll get the lines you selected and appended to the kill ring entry all together.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With