
11 Jun
2012
11 Jun
'12
6:45 a.m.
On Mon, 11 Jun 2012 16:21:31 +1000, Russell Coker <russell@coker.com.au> wrote:
Is there a VIM command that can delete the current line and all following lines until it meets a line starting with "---" (or "diff" depending on the type of diff file)?
You can delete to a regular expression, eg: d/^---- You can also map this whole thing to a key (eg a function key), so you can repeat it easily: :map <f2> d/^----<cr> regards, Glenn -- sks-keyservers.net 0xb1e82ec9228ac090