How to quickly remove those pesky line numbers from copied code.

December 15, 2011 at 11:01 am | Posted in Oracle Developement | Leave a comment
Tags: , , , ,

If you’re like me, you cut & paste tons of code. The trouble is however, that often line numbers are included in the copied text, and you have to remove those before you can paste it into your development environment.

If you use vi or gvim, you can quickly remove the line numbers and empty spaces from your code with this command:

%s/^ \{1,}[0-9]\{1,} //

Good luck!

Advertisements

Leave a Comment »

RSS feed for comments on this post. TrackBack URI

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


Entries and comments feeds.

%d bloggers like this: