john2x john2x - 3 years ago 212
Python Question

How to yank an entire block in Vim?

Is it possible to yank an entire block of Python code in Vim?

Be it a

def
,
for
,
if
, etc. block...

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download