VOOZH about

URL: https://vimtricks.wiki/posts/register-yank-function-body

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


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