How to quickly remove those pesky line numbers from copied code.
December 15, 2011 at 11:01 am | Posted in Oracle Developement | Leave a commentTags: gvim, sql, sql*plus, vi
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
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.
