{"id":17801655,"url":"https://github.com/ubaldot/vim-manim","last_synced_at":"2025-09-13T10:46:33.306Z","repository":{"id":232579072,"uuid":"784166465","full_name":"ubaldot/vim-manim","owner":"ubaldot","description":"Render your manim-ations from Vim.","archived":false,"fork":false,"pushed_at":"2024-04-12T08:24:52.000Z","size":657,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T19:19:27.489Z","etag":null,"topics":["manim","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","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":"2024-04-09T10:12:08.000Z","updated_at":"2024-05-14T10:02:21.000Z","dependencies_parsed_at":"2024-10-28T07:46:08.212Z","dependency_job_id":null,"html_url":"https://github.com/ubaldot/vim-manim","commit_stats":null,"previous_names":["ubaldot/vim-manim"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldot%2Fvim-manim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldot%2Fvim-manim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldot%2Fvim-manim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubaldot%2Fvim-manim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubaldot","download_url":"https://codeload.github.com/ubaldot/vim-manim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246758278,"owners_count":20828919,"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":["manim","vim","vim-plugin"],"created_at":"2024-10-27T12:39:09.008Z","updated_at":"2025-09-13T10:46:33.293Z","avatar_url":"https://github.com/ubaldot.png","language":"Vim Script","readme":"# vim-manim\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"/Demo.gif\" width=\"60%\" height=\"60%\"\u003e\n\u003c/p\u003e\n\nA tiny plugin to render animations with\n[manim ce](https://www.manim.community) without leaving Vim.\n\nWritten in Vim9.\n\n## Usage\n\n### Commands\n\nThis plugin provides only two commands:\n\nType `:Manim` then hit `\u003ctab\u003e` to select a Scene. Then hit `\u003cspace\u003e` and\n`\u003ctab\u003e` again to select a list of rendering flags.\n\nType `:ManimCheck` to perform a check on your `manim` installation.\n\nThe rendering output is stored in the quickfix list. Type `:copen` and\n`:cclose` to open/close the quickfix list. See `:h quickfix.txt` for more\ninfo.\n\n### Events\n\nTwo events `ManimPre` and `ManimPost` are also provided. The former triggers\nactions before the actual `manim` program is executed, whereas the latter just\nafter. As an example of usage, you may consider the following:\n\n```\nautocmd! User ManimPre echom \"Manim renderer is being called...\"\nautocmd! User ManimPost echom \"Rendering done! Check eventual errors.\"\n```\n\nSee `:h autocommand` for more info on Vim autocommands.\n\n## Configuration\n\nThere are only two configuration variables: `g:manim_flags` and\n`g:manim_default_flag`.\n\nThe former is a dictionary where the keys are tags and the values are the\nactual rendering flags. For example, you could define:\n\n```\nvar manim_common_flags = '--fps 30 --disable_caching -v WARNING'\ng:manim_flags = {'low_quality': $\"-pql {manim_common_flags}\",\n                'high_quality': $\"-pqh -c ~/my_config.cfg {manim_common_flags}\",\n                'transparent': $\"-pqh -c ~/my_config.cfg {manim_common_flags} --transparent\"}\n```\n\n\u003e [!NOTE]\n\u003e\n\u003e No spaces are allowed in the dictionary keys!\n\nThe latter is a default flag that must be a key of `g:manim_flags`. For\nexample, you could set the following:\n\n```\ng:manim_default_flag = keys(g:manim_flags)[-1]\n```\n\nIf such variables are not set by the user, the following default values are\nprovided:\n\n```\ng:manim_flags = {'low_quality': $\"-pql\"}\ng:manim_default_flag = keys(g:manim_flags)[0]\n```\n\nEnjoy!\n\n## What about docs?\n\nYou don't really need a plugin for that. It is enough that you define your own\ncommand in e.g. your `.vimrc`, or, even better, in your\n`~/.vim/after/ftplugin/python.vim` file (replace `.vim` with `vimfiles` if you\nare using Windows). You can for example have something like the following:\n\n```\n    if executable(\"open\")\n        command! ManimDocs silent :!open -a safari.app\n                \\ ~/Documents/manimce-latest/index.html\n    elseif executable(\"xdg-open\")\n        command! ManimDocs silent :!xdg-open\n                \\ https://docs.manim.community/en/stable/\n    else\n        command! ManimDocs silent :!start\n                \\ ~/Somepath/manimce-0.18.0/index.html\n    endif\n```\n\nChange the above according to your setup. Then, run `:ManimDocs` to open the\ndoc page.\n\n\u003e [!Tip]\n\u003e\n\u003e Having your docs stored somewhere locally is obviously much faster to open\n\u003e doc pages. But don't forget to update them when you install a newer version\n\u003e of manim.\n\n## License\n\nBSD3-Clause.\n","funding_links":[],"categories":["Integrations"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubaldot%2Fvim-manim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubaldot%2Fvim-manim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubaldot%2Fvim-manim/lists"}