Turned off cindent, set tab/shift widths and formatoptions
Changed function syntax to be more consistent with the rest