Copy from one register to another

后端 未结 2 1414
既然无缘
既然无缘 2021-01-30 06:06

How to copy the contents of one register to another without pasting on clipboard? I\'d yanked one text and it got yanked in the default \" register. Now I want to c

2条回答
  •  萌比男神i
    2021-01-30 06:46

    You can do something like this:

    let @a = getreg('"')
    

    That'll copy the " register to the a register.

提交回复
热议问题