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 & past tons of code. Especially from sites like Ask Tom. 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!

Advertisement

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 )

Connecting to %s

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.

Follow

Get every new post delivered to your Inbox.

Join 25 other followers