Articles: Vim and Vi Delete All Lines Below Cursor/Current Line
Posted by: david on 10/21/2010 - 04:52 AM
If you use the venerable Vim or Vi editor- here's a tip for you- if you want to delete all the lines beneath the current line, simply do a:dG
It's not ":dG" which won't work. The "dG" will delete all the lines below the current line, no matter how many lines are left. Certainly beats having to keep doing "dd".