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 ? 在 2019年12月20日星期五 UTC+8上午5:24:09,Gary Johnson写道: > > On 2019-12-19, skywind3000 wrote: > > Please provide a standard way to locate project root directory. > > This is an attractive idea, but there is no standard way to locate > a project root directory. > > I have a plugin that attempts to do this. It has evolved over many > years and contains several different methods for identifying project > root directories. Each company I have worked for has had different > ideas of how project directories should be structured and where they > should be put. For company, open-source and personal projects, some > have VCS files in the project root and some don't. For a project > using git submodules, is a submodule a project or does the top-level > directory contain the project? > > I want to be able to identify a project even if it is not my own > directory and the owner doesn't use vim, so putting a file such as > .vim_project in the root directory is out. Also, I really don't > want dot files cluttering every directory that I consider a project. > (My own plugin uses heuristics and a database of exceptions that > resides under ~/.vim.) > > We can't impose a standard on the world's projects and personal > requirements and preferences vary a lot, so I think this problem is > best solved by using plugins, not by adding something to the Vim > executable. > > Regards, > Gary > > -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/2166c84d-8834-42d3-844b-ff8e8d5b056f%40googlegroups.com.