Try out the EditorConfig plugin which will read the .editorconfig file and handle that for you ;)

https://github.com/sindresorhus/editorconfig-sublime