23
Sep
09

Useful VI tip

Here is an easy way to get rid of the annoying characters gedit adds to your files

:%s/^V^M//g

The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, it will look like this:

:%s/^M//g

I have some nice pictures of rain drops that I have wanted to blog about but that can wait for post exams

Advertisements

0 Responses to “Useful VI tip”



  1. Leave a Comment

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


My Tweets

My gravatar


%d bloggers like this: