How to quickly remove those pesky line numbers from copied code.
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!