Archive for August, 2010

producing zero padded incrementing numbers in vim

Monday, August 9th, 2010
:let j=[] | %s/xxxx/\=printf(”%04d”, “”.len(add(j,”)))/g

(adapted from this tip)