Is it possible to yank an entire block of Python code in Vim?
Be it a
if, etc. block...
You can yank a paragraph with
y}. This will not yank all the methods if you have a blank line though.
To yank a method: yaM (inner method: yiM)
To yank a class: yaC
There are other handy motions, like moving from function-to-function (]]). See the complete list of keys for more.