Wrapping by substitution
I'm having a mental block, how can I wrap a string via substitute() ? I've been trying something like: let str = 123456789012345678901234567890 let str = substitute(str, '\n\([[:print:]]\{-10,}\)', '\n\1\n', '') echo str to produce: 1234567890 1234567890 1234567890 -- Steve Hall
RE: Wrapping by substitution
is a work-around, but I'm trying to write a more generic substitution for wrapping. -- Steve Hall [ digitect dancingpaper com ]