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
  • Firefox Freezing up When Downloading Files
  • Get OpenSolaris CD’s Shipped to you for Free
  • PerfMonG - Minimalistic Performance Monitor for Windows

  • One Response to “Quick Vi Tip”

    1. Gravatar onur TURKEY Says: Reply to this comment

      thank you

      Posted using Internet Explorer Internet Explorer 6.0 on Windows Windows XP

    Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <pre lang=""> <em> <i> <strike> <strong>

    [Quote selected]