{"id":13727499,"url":"https://github.com/gpanders/vim-medieval","last_synced_at":"2025-04-04T18:07:09.571Z","repository":{"id":40436495,"uuid":"244541035","full_name":"gpanders/vim-medieval","owner":"gpanders","description":"Evaluate Markdown code blocks within Vim","archived":false,"fork":false,"pushed_at":"2024-12-05T13:09:33.000Z","size":57,"stargazers_count":170,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T17:07:59.399Z","etag":null,"topics":["literate-programming","markdown","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","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/gpanders.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":"2020-03-03T04:25:37.000Z","updated_at":"2025-03-22T08:13:06.000Z","dependencies_parsed_at":"2024-11-30T22:38:23.898Z","dependency_job_id":null,"html_url":"https://github.com/gpanders/vim-medieval","commit_stats":{"total_commits":57,"total_committers":7,"mean_commits":8.142857142857142,"dds":"0.38596491228070173","last_synced_commit":"4372814770d1138ae2df63c25718ecc1a82e6ece"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpanders%2Fvim-medieval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpanders%2Fvim-medieval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpanders%2Fvim-medieval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpanders%2Fvim-medieval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gpanders","download_url":"https://codeload.github.com/gpanders/vim-medieval/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226213,"owners_count":20904465,"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":["literate-programming","markdown","vim"],"created_at":"2024-08-03T01:04:02.401Z","updated_at":"2025-04-04T18:07:09.537Z","avatar_url":"https://github.com/gpanders.png","language":"Vim Script","funding_links":[],"categories":["Vim Script","Vim script"],"sub_categories":[],"readme":"# vim-medieval\n\nEvaluate Markdown code blocks within Vim.\n\n[![asciicast](https://asciinema.org/a/306995.svg)](https://asciinema.org/a/306995)\n\n## Description\n\nMedieval allows you to evaluate code blocks in Markdown buffers of the\nfollowing form:\n\n````markdown\n```bash\necho \"Hello world!\"\n```\n````\n\nBy placing your cursor anywhere in the code block above and running\n`:EvalBlock`, Medieval will print the result of evaluating the block (in this\ncase, it will echo \"Hello world!\")\n\nYou can send the output of evaluation into another code block, allowing\nyou to do a primitive style of literate programming. You can accomplish this\nby adding a \"target\" parameter to your code block and creating a second code\nblock with a \"name\" parameter. The output of the evaluation of your code block\nwill be redirected to the targeted block. For example:\n\n````markdown\n\u003c!-- target: squares --\u003e\n```python\nprint([x*x for x in range(5)])\n```\n\n\u003c!-- name: squares --\u003e\n```\n```\n````\n\nIf you run `:EvalBlock` in the first code block, the second block will become\n\n````markdown\n\u003c!-- name: squares --\u003e\n```\n[0, 1, 4, 9, 16]\n```\n````\n\nMedieval can do a lot more. Read `:h medieval` for the full documentation.\n\n## Create a mapping\n\nMedieval does not create any mappings by default, but you can easily create one\nyourself by adding the following to the file\n`~/.vim/after/ftplugin/markdown.vim` (create it if it does not yet exist):\n\n```vim\nnmap \u003cbuffer\u003e Z! \u003cPlug\u003e(medieval-eval)\n```\n\n## Limitations\n\nFor now, Medieval only works in Markdown buffers. If you'd like to see support\nadded for other file types, please see the [Contributing](#contributing)\nsection.\n\n## Contributing\n\nPlease feel free to contribute changes or bug fixes. You can [send patches][]\nto \u003cgit@gpanders.com\u003e or submit a pull request on [GitHub][].\n\n[send patches]: https://git-send-email.io/\n[Github]: https://github.com/gpanders/vim-medieval\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpanders%2Fvim-medieval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgpanders%2Fvim-medieval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpanders%2Fvim-medieval/lists"}