Obviously, there are project related problems needs to be solved. At least
we have consensus below:
1. use something which seems to have been established as standard.
2. which is easy to be implemented by plugins with minimal dependency.
editorconfig seems like a good choice, but only one thing, there can by
multiple `.editorconfig` file
in one project.
And you need to parse the `.editorconfig` to check if there is a `root =
true` in it, without actually
parsing one `.editorconfig` file, the project tree cannot be located.
It is not simple to implemented by plugins without introducing new
dependency (the `EditorConfig` plugin).
So, let's find some alternatives.
OK, here is a new one:
The vscode's `.vscode` folder
1. it can be used for both locating project tree and storing
project-specific configs,
2. it is well known and nearly a standard.
3. it is easy to be implement by plugins respectively without any
dependency and can also run in old vims.
how about this ??
--
在 2019年12月20日星期五 UTC+8下午8:30:03,Christian Brabandt写道:
>
>
> On Do, 19 Dez 2019, skywind3000 wrote:
>
> > a `.vim_project` file to mark the project root ? It's fine, but give us
> a
> > standard, or:
> >
> > plugin A uses `.vim_project1`, plugin B uses `.vim_root`, plugin C
> > uses `.project_root` and plugin C uses `.root`.
> >
> > And plugin D uses `.git`, and due to submodule, or some other reasons
> >
> > You will get totally different project roots for the same file.
> >
> > what a mess ?
>
> Agree, but I suppose it's not Vim that sets the standard, we should only
> support whatever seems to have been established as standard. Perhaps
> editorconfig could be used for that (see also the open issue:
> https://github.com/vim/vim/issues/2286
> )
>
>
> Best,
> Christian
> --
> Als Gott den Mann erschuf, übte sie nur.
>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/e2afb8ad-38c5-4368-81ed-e236e2e09d55%40googlegroups.com.