Try DetectIndent plugin