How to yank an entire block in Vim?

python, vim

Solution

You can yank a paragraph with `y}`. This will not yank all the methods if you have a blank line though.

Problem

Is it possible to yank an entire block of Python code in Vim? Be it a `def`, `for`, `if`, etc. block...

Original source