# How do you read the contents of a macro into your buffer?

I know that you can use let @x = @w to copy the contents of a macro from one register to another, but how do you read the contents of your macro register into the buffer?

• Possibly duplicate of vi.stackexchange.com/questions/12513/…, although I think DBK's answer is better. – dedowsdi Nov 7 '19 at 6:10
• @dedowsdi that doesnt seem like a dupe at all, though def related. – D. Ben Knoble Nov 7 '19 at 13:46
• @D.BenKnoble read a macro into buffer and save a macro in vimrc are basically the same thing. – dedowsdi Nov 7 '19 at 23:28
• Disagree, maybe pedantically—one involves the let and the “saving,” whereas here we might just care about pasting. @dedowsdi but good to link them – D. Ben Knoble Nov 7 '19 at 23:37

"ap