Prepending character N followed by line numbers
Posted
by Denis
on Stack Overflow
See other posts from Stack Overflow
or by Denis
Published on 2010-04-19T20:33:11Z
Indexed on
2010/04/20
0:43 UTC
Read the original article
Hit count: 280
vim
Hi, I'm hand editing CNC Gcode text files and need a way to reference locations in the file and on the toolpath. I want to modify each line in the text file so that it begins with the the upper case N character followed by line numbers which increment in tens for every successive line, then a whitespace,followed by the original text file. Can I do this in vi?
© Stack Overflow or respective owner