Answer
"aVaBy
Explanation
Position cursor in a function, use VaB to visually select the block including braces, then "ay to yank into register a.
category: registers tags: #registers #yank #function
Next
How do you yank a single word into a named register?
Related Tricks
How do I paste the unnamed register after transforming it to uppercase?
:put =toupper(@")
How do I paste multiline clipboard text as a comma-separated list in Insert mode?
<C-r>=substitute(getreg('+'), '\n\+', ', ', 'g')<CR>
How do I insert a register in Insert mode without reindenting each inserted line?
<C-r><C-o>a
How do I search literally for the exact text I yanked last?
:let @/ = '\V' . escape(@0, '\')
How do I insert a timestamp computed by Vimscript directly from Normal mode?
"=strftime('%Y-%m-%d %H:%M')<CR>p
