Open fedorenchik opened 3 years ago
@fedorenchik thanks for using the plugin and reporting! I think you are saying that, in some cases, if you add a .editorconfig
to a project but the files in that project don't match the settings in the .editorconfig
, the plugin doesn't make Vim change those files. Is that correct or not?
To help us understand the problem:
Much appreciated!
When working on multiple new and existing projects automatic changing of settings can get in a way.
For example, I want new projects use settings from
$HOME/.editorconfig
, and existing projects (which maybe without any local .editorconfig file) keep existing settings (specifically,fileformat
).Let's say, in
$HOME/.editorconfig
:and existing projects has dos-style line endings.
Then, automatic changing of
fileformat
has 2 problems:set ff?
would always returnunix
)set ff=dos | set ff=unix
)Maybe other settings have the same issue (such as
insert_final_newline
).Thus, I propose to not change settings of existing files (or at least don't set settings from
.editorconfig
whereroot = true
).