{"id":17801658,"url":"https://github.com/ubaldot/vim-conda-activate","last_synced_at":"2025-10-17T21:03:13.040Z","repository":{"id":169141988,"uuid":"644852491","full_name":"ubaldot/vim-conda-activate","owner":"ubaldot","description":"Activate Conda environments in Vim.","archived":false,"fork":false,"pushed_at":"2025-02-06T12:12:10.000Z","size":1488,"stargazers_count":18,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T23:28:47.634Z","etag":null,"topics":["conda","vim","vim9"],"latest_commit_sha":null,"homepage":"https://www.vim.org/scripts/script.php?script_id=6074","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ubaldot.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-24T11:47:38.000Z","updated_at":"2025-02-06T12:12:13.000Z","dependencies_parsed_at":"2024-07-26T11:12:37.821Z","dependency_job_id":null,"html_url":"https://github.com/ubaldot/vim-conda-activate","commit_stats":{"total_commits":97,"total_committers":2,"mean_commits":48.5,"dds":"0.030927835051546393","last_synced_commit":"b51af4885eda7e2e77fbe4dc93889ea61a5e0c8f"},"previous_names":["ubaldot/vim-conda-activate"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldot%2Fvim-conda-activate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldot%2Fvim-conda-activate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldot%2Fvim-conda-activate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldot%2Fvim-conda-activate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubaldot","download_url":"https://codeload.github.com/ubaldot/vim-conda-activate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858587,"owners_count":20359378,"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":["conda","vim","vim9"],"created_at":"2024-10-27T12:39:09.908Z","updated_at":"2025-10-17T21:03:08.006Z","avatar_url":"https://github.com/ubaldot.png","language":"Vim Script","funding_links":[],"categories":["Integrations"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"/LookingFor.svg\" width=\"60%\" height=\"60%\"\u003e\n\u003c/p\u003e\n\n# Conda-activate\nActivate Conda virtual environments in Vim.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"/Conda.gif\" width=\"60%\" height=\"60%\"\u003e\n\u003c/p\u003e\n\n## Introduction\n*Conda-activate* picks the inheritance of\n[vim-conda](https://github.com/cjrh/vim-conda) by providing the same features\nin a Vim9 fashion.  It further accommodates changes that `conda` experienced\nthroughout the years.\n\n\n*Conda-activate* sets various environment variables such as\n`$CONDA_DEFAULT_ENV`,\n `$CONDA_PREFIX`, `$PATH`, etc., and set the\n`pythonthreehome` and `pythonthreedll` options.\n\nThe internal `sys.path` used by Vim is also set.\n\nThis plugin has been tested on **Conda 23.3.1** and it work-ish on such a release.\nWork-ish means that there could be some use-cases where it performs poorly.\n\n\n## Requirements\nYou need *conda* and *Vim9*.\u003cbr\u003e\n\nYou also need  your `python` environment set properly.\nBe sure that you get `1` in response to  `:echo has('python3')` and\n `Hello World` in response to `:python3 print('Hello World')`.\u003cbr\u003e\u003cbr\u003e\n\n\u003c!-- If it won't happen, then you have to set the `pythonthreedll` and --\u003e\n\u003c!-- `pythonthreehome` options in Vim. --\u003e\n\u003c!-- See `:h pythonthreedll` and `:h pythonthreehome`.\u003cbr\u003e\u003cbr\u003e --\u003e\n\n\n\u003e [!CAUTION]\n\u003e Vim shall be started from an activated virtual environment.\n\u003e Don't start Vim from the *base* environment or from a shell where `conda`\n\u003e has not been initialized!\n\u003e To be safe, you may consider to add the following\n\u003e in your *.basrc/.zshrc/whatever*:\n\u003e```\n\u003econda activate myenv\n\u003e```\n\u003e or to create a `.bat` file with something like the following content:\n\u003e```\n\u003e@echo off\n\u003ecall C:\\Users\\yourname\\Miniconda3\\condabin\\activate.bat C:\\Users\\yourname\\Miniconda3\\envs\\myenv\n\u003egvim\n\u003e```\n\u003e\n\u003e if you are a Windows user.\n\u003e For such users, names like `Miniconda3`, `Anaconda`, etc. in the\n\u003e list of available virtual environments represent the `base` environment.\n\u003e\n\u003e Make sure that the version of Python installed in the virtual environment you use to start Vim\n\u003e matches the version of Python used to compile Vim.\n\n\n## Usage\nThis plugin has one command `CondaActivate` that takes one (optional) argument:\n```\n:CondaActivate # Show a popup menu\n:CondaActivate myenv # Activate myenv without popup menu\n```\n\nIt further exposes an *autocommand-event* named `CondaEnvActivated` that\nyou can use to perform other actions just after you activated a virtual\nenvironment.\nHere is a simple example on how to use it:\n```\nautocmd! User CondaEnvActivated :echom $\"{$CONDA_DEFAULT_ENV} activated.\"\n```\n\n## Credits\nThanks to [vim-conda](https://github.com/cjrh/vim-conda) that paved the way.\nI would have never done this plugin without reading (and learning)\nfrom [vim-conda](https://github.com/cjrh/vim-conda) source code.\n\n\n## Contributing\nFeel free to send a PR if have any improvement ideas.\u003cbr\u003e\nFor more info check `:h condaactivate.txt`.\n\n\n## License\nBSD-3 Clause.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubaldot%2Fvim-conda-activate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubaldot%2Fvim-conda-activate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubaldot%2Fvim-conda-activate/lists"}