Let say I have a minified javascript function like this:function(){for(a=0;++a>0;){console.log(a);}}and I want to apply an agressive split on it, that is insert a new line for some characters. So I would havefunction(){for(a=0;++a>0;){console.log(a);}}Of course I can use multiple substitute like ::s/{/{\r/g:s/}/\r}/g:s/(/(\r/g:s/)/\r)/g...But.Is there a way to use one (or two) substitute(s) to do the whole job?
Split a line by non-letter characters
regular expression;substitute