Version 1 (modified by 17 years ago) (diff) | ,
---|
Development notes
My brain is too small. I'm putting stuff here to remember it later.
Remove useless spaces before and after parentheses:
:%s/( */(/g :%s/ *)/)/g
Add spaces where I want to see them:
# After commas :%s/,\([^ ]\)/, \1/g # Inside = + += > etc. :%s/\([a-zA-Z0-9]\)\([-+*/><=]\|[-+*/><=!]=\)\([a-zA-Z0-9]\)/\1 \2 \3/g