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?
Asked
Active
Viewed 82 times
2
D. Ben Knoble
- 26,070
- 3
- 29
- 65
leeand00
- 3,555
- 5
- 24
- 40
1 Answers
4
Macros are stored in the same registers as you use for yanking, deleting, and putting, so any of
"ap
:put a
Etc
D. Ben Knoble
- 26,070
- 3
- 29
- 65
read a macro into bufferandsave a macro in vimrcare basically the same thing. – dedowsdi Nov 07 '19 at 23:28