What's the quickest way to delete the entire foo
method, given your cursor position:
def baz
qux
end
def foo
bar
end
def blag
blarg
end
dap
gets it done in three keystrokes.
d
- delete (note: the delete command waits for a subsequent motion or text object)ap
- a paragraph (a sequence of lines surrounded by a newline):h ap
describes the "a paragraph" text object.