Home > Tools, Vi / Vim > Vi – Delete all file contents

Vi – Delete all file contents


To remove / delete all file contents, use this command: dG

Cheers,
Pete Houston

Advertisements
Categories: Tools, Vi / Vim Tags: , ,
  1. February 27, 2014 at 6:40 pm

    Hmm it looks like your website ate my first comment (it was extremely
    long) so I guess I’ll just sum it up what I wrote and say, I’m thoroughly enjoying your blog.
    I too am an aspiring blog writer but I’m still new to everything.
    Do you have any points for beginner blog writers?
    I’d definitely appreciate it.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: