{"id":19530153,"url":"https://github.com/tpope/vim-dotenv","last_synced_at":"2025-10-15T00:44:57.582Z","repository":{"id":32211228,"uuid":"35785041","full_name":"tpope/vim-dotenv","owner":"tpope","description":"dotenv.vim: Basic support for .env and Procfile","archived":false,"fork":false,"pushed_at":"2022-05-15T16:46:14.000Z","size":9,"stargazers_count":200,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-08T16:28:05.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.vim.org/scripts/script.php?script_id=5176","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpope.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":"CONTRIBUTING.markdown","funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"tpope","custom":["https://www.paypal.me/vimpope"]}},"created_at":"2015-05-17T22:10:13.000Z","updated_at":"2025-01-08T13:16:33.000Z","dependencies_parsed_at":"2022-07-08T17:17:09.811Z","dependency_job_id":null,"html_url":"https://github.com/tpope/vim-dotenv","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-dotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-dotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-dotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpope%2Fvim-dotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpope","download_url":"https://codeload.github.com/tpope/vim-dotenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240783109,"owners_count":19856776,"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-11T01:29:21.986Z","updated_at":"2025-10-15T00:44:57.477Z","avatar_url":"https://github.com/tpope.png","language":"Vim script","funding_links":["https://github.com/sponsors/tpope","https://www.paypal.me/vimpope"],"categories":[],"sub_categories":[],"readme":"# dotenv.vim\n\nThis plugin provides basic support for `.env` and `Procfile`.\n\n## Interactive Usage\n\nUse `:Dotenv {file}` or `:Dotenv {dir}` to load a `.env` file and set the\ncorresponding environment variables in Vim.  Use `:verbose Dotenv` to see what\nvariables are actually being set.\n\n## Projections\n\nWith [projectionist.vim][] and [dispatch.vim][] installed, you'll get a\ndefault `:Start` of `foreman start` for projects with a `Procfile`, and a\ndefault `:Dispatch` of `foreman check` for the `Procfile` itself.\n\n[projectionist.vim]: https://github.com/tpope/vim-projectionist\n[dispatch.vim]: https://github.com/tpope/vim-dispatch\n\n## Dispatch\n\nIf you call `:Dispatch foreman run whatever` or `:Dispatch dotenv whatever`,\nthe compiler will be correctly selected for the `whatever` command.\n\n## API\n\nWhile the above are all marginally helpful, this is the use case that inspired\nthe plugin.  Other plugins can call `DotenvGet('VAR')` to get the value of\n`$VAR` globally or from the current buffer's `.env`.  Here's a wrapper to\noptionally use `DotenvGet()` if it's available.\n\n    function! s:env(var) abort\n      return exists('*DotenvGet') ? DotenvGet(a:var) : eval('$'.a:var)\n    endfunction\n\n    let db_url = s:env('DATABASE_URL')\n\nThere's also `DotenvExpand()`, a drop-in replacement for `expand()`.\n\n    function! s:expand(expr) abort\n      return exists('*DotenvExpand') ? DotenvExpand(a:expr) : expand(a:expr)\n    endfunction\n\n## License\n\nCopyright © Tim Pope.  Distributed under the same terms as Vim itself.\nSee `:help license`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Fvim-dotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpope%2Fvim-dotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpope%2Fvim-dotenv/lists"}