Reading time: 1 min
.editorconfig let’s you set editor coding style per project.
Sample:
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
Plugin for vim:
git clone 'git@github.com:editorconfig/editorconfig-vim.git'