CoolComputing Logo
Coupons/Deals  ·  New Promo Codes/Coupons  · February 25, 2018

Vim and Vi Delete All Lines Below Cursor/Current Line

Posted on Thursday, October 21, 2010 @ 04:52:29 AM CDT by David Yee [] [read 10878 times]

 
Tips: Linux/Unix world
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".



Please rate this article or post a brief review of Vim and Vi Delete All Lines Below Cursor/Current Line or comment on benchmark/performance, features, availability, price or anything else regarding Vim and Vi Delete All Lines Below Cursor/Current Line. Thanks!

Vim And Vi Delete All Lines Below Cursor/Current Line Rating: 3.1/5 (19 votes cast)

Your Name:
I have read and agreed to the Review Posting Agreement.
Review Title:
Comment/Review: