vimtricks.wiki Concise Vim tricks, one at a time.

How do you yank an entire function body into a register?

Answer

"aVaBy

Explanation

Position cursor in a function, use VaB to visually select the block including braces, then "ay to yank into register a.

Next

How do you yank a single word into a named register?