Any left parenthesis with a character immediately next to it give a space:
%s/(\([^ )]\)\@=/( /g
Any right parenthesis with a character immediately before it that is not a } or ] add a space.:
`%s/([ }]])@
| .body{ | |
| width: 400px; | |
| height: 400px; | |
| } | |
| .triangle { | |
| position: relative; | |
| margin: 0 auto; | |
| width: 20px; | |
| height:20px; | |
| } |
index.html main.js style.css| { | |
| app:{ | |
| version: "0.1.0", | |
| state:{ | |
| currentRoute: "/search", | |
| qs: "blah=derp" | |
| // or | |
| qs:{ | |
| blah:"derp" | |
| } |