{"id":20057695,"url":"https://github.com/todesking/current_project.vim","last_synced_at":"2026-02-13T08:16:51.573Z","repository":{"id":136155721,"uuid":"21063810","full_name":"todesking/current_project.vim","owner":"todesking","description":null,"archived":false,"fork":false,"pushed_at":"2015-01-25T13:17:10.000Z","size":292,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T21:46:29.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"VimL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/todesking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-21T08:15:23.000Z","updated_at":"2015-01-25T13:17:10.000Z","dependencies_parsed_at":"2023-03-13T11:04:36.547Z","dependency_job_id":null,"html_url":"https://github.com/todesking/current_project.vim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/todesking%2Fcurrent_project.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/todesking%2Fcurrent_project.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/todesking%2Fcurrent_project.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/todesking%2Fcurrent_project.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/todesking","download_url":"https://codeload.github.com/todesking/current_project.vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241488152,"owners_count":19970826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T12:59:55.808Z","updated_at":"2025-10-03T18:53:46.254Z","avatar_url":"https://github.com/todesking.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# current_project.vim: Project information from file path\n\n## Usage\n\n```vim\nlet info = current_project#info() \" returns current buffer's information\n\n\" =\u003e\n{\n\\ 'name': 'current_project.vim',\n\\ 'path': '~/.vim/bundle/current_project.vim',\n\\ 'main_name': 'current_project.vim',\n\\ 'main_path': '~/.vim/bundle/current_project.vim',\n\\ 'sub_name': '',\n\\ 'sub_path': '~/.vim/bundle/current_project.vim',\n\\ }\n\nlet file_info = current_project#file_info()\n\" Same as current_project#info(), in addition `file_path` is available.\n\nlet summarized = current_project#summarize_path(expand('%'))\n\" =\u003e\n'[current_project.vim] README.md'\n```\n\n## Project detection logic\n\nTo find project root: `~/projects/`, or search `.git`, `.svn`, `.hg`(see `s:project_root_of()`)\n\nTo find subproject: User-defined subproject pattern(see `s:subproject_root()`, `s:subproject_patterns`)\n\n## Setting directory\n\n`~/.current_project.vim/`\n\n## Example\n\n```vim\n\" e-in-current-project\ncommand! -complete=customlist,current_project#complete -nargs=1 Pe :exec ':e ' . current_project#info().path . '/' . \"\u003cargs\u003e\"\ncommand! -complete=customlist,current_project#complete_main -nargs=1 PE :exec ':e ' . current_project#info().main_path . '/' . \"\u003cargs\u003e\"\n```\n\n```vim\n\" statusline example\nset statusline=%{current_project#summarize_path(expand('%'))}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftodesking%2Fcurrent_project.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftodesking%2Fcurrent_project.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftodesking%2Fcurrent_project.vim/lists"}