Quick Vi Tip

If you need to delete massive amounts of text in Vi try these next time:

<d><G> deletes everything below the cursor

<d><1><G> deletes everything above the cursor.

<d>/foo deletes everything till the next occurence of foo

And finally:

<m><a> and <d><`><a> deletes everything from your cursor to where you placed the a mark.

Some of these things really come in useful, every once in a while.

Related Posts:

  • Dollar Bill Ruler
  • Linux: Quick and Dirty Way to Take Screenshots
  • Enabling Polish Letters (Ogonki) in Vim
  • Zune Sales: In the Toilet
  • Jade Empire: Final Thoughts
  • Luke, I am your father!
  • Time Logging Script
  • Get OpenSolaris CD’s Shipped to you for Free
  • Firefox Freezing up When Downloading Files
  • How not to spill coffee on your laptop

  • One Response to “Quick Vi Tip”

    1. onur TURKEY Internet Explorer Windows says:

      thank you

      Reply  |  Quote

    Leave a Reply