How to copy the contents of one register to another without pasting on clip board? I'd yanked one text and it got yanked in the default " register. Now i wan't to copy another text without deleting/overwriting " register. So I wan't to move the contents of " register to say some a or b register so that I can copy the new text inside ". How to do this?
+4
A:
You can do something like this:
let @a = getreg('"')
That'll copy the "
register to the a
register.
derobert
2009-10-01 06:40:34