Hey everyone,

I work with someone who formats their code like this:

if(asafdlkasdf)
{
 asdfasf
}


i write like this:

if(asdfasfd) {
   safasdf
}


I wrote a little regex to fix the ") _newline_ { _newline_" problem
but I am getting strange results

here is the regex: %s/)\s*\n\s*{\n/) {\n/ig

It runs through but my code is getting formatted like this now

if(asdf) { ^@ nextline_of_code _newline_

notice the ^@ - where is that coming from???

thanks in advance, I hope I was clear enough

- Ben

Reply via email to