Vim - delete until (inclusive) character in multiple lines
问题 I have this code: def foo(c: Char) = c match { case 'a': 'B' } My cursor is on the space after = . I want to delete everything until, including, the } . How can I do that? Can I do the same where the cursor is anywhere on the first line? Anywhere in the block (and place the cursor after the = )? 回答1: d/}/e does the job. d/} deletes until the } but adding the /e flag moves the cursor on the last char of the match, effectively deleting everything between the cursor and the } , inclusive . Using