Yank to register


#1

I’m getting used to registers in Kakoune. I can use the " key to select a register and <c-r> to insert the contents of a register.

Using the command prompt and/or keyboard keys, how could I do something like the following?

  • yank a selection to the a register
  • copy the contents of the a register to the b register
  • insert the contents of the b register into the buffer

#2

Hi,

"ay

:set-register b %reg{a}

You can either paste with "bp (paste using the b register), or use <c-r>b (insert the content of a register into the buffer)