{"id":30052247,"url":"https://github.com/igrep/prompt.md.vim","last_synced_at":"2026-02-09T05:04:42.476Z","repository":{"id":296511683,"uuid":"992919072","full_name":"igrep/prompt.md.vim","owner":"igrep","description":"Commands and functions to help you compose and submit long prompts as a markdown file to a CLI/TUI based coding agent. Currently, it supports only Claude Code.","archived":false,"fork":false,"pushed_at":"2025-07-09T13:01:48.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T03:07:47.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igrep.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,"zenodo":null}},"created_at":"2025-05-29T23:19:41.000Z","updated_at":"2025-07-09T13:01:52.000Z","dependencies_parsed_at":"2025-05-31T19:08:48.107Z","dependency_job_id":"f40e1f66-b928-434c-b674-82cadd52d6e8","html_url":"https://github.com/igrep/prompt.md.vim","commit_stats":null,"previous_names":["igrep/prompt.md.vim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/igrep/prompt.md.vim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrep%2Fprompt.md.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrep%2Fprompt.md.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrep%2Fprompt.md.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrep%2Fprompt.md.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igrep","download_url":"https://codeload.github.com/igrep/prompt.md.vim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igrep%2Fprompt.md.vim/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269292889,"owners_count":24392505,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-08-07T16:55:34.059Z","updated_at":"2026-02-09T05:04:42.425Z","avatar_url":"https://github.com/igrep.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prompt.md.vim\n\nCommands and functions to help you compose and submit long prompts as a markdown file (`*.prompt.md` file) to a CLI/TUI based coding agent. Currently, it supports only Claude Code so far.\n\n## Provided Functions\n\n### Composing Prompts\n\n- `prompt_md#send_at_this_path()`:\n    - Put `@\u003cthe current file path (buffer name)\u003e` at the last `*.prompt.md` file.\n- `prompt_md#send_at_this_path_with_hash_line_and_open_to_prompt()`:\n    - Put `@\u003cthe current file path (buffer name)\u003e#\u003cthe current line number\u003e` at the last `*.prompt.md` file.\n- `prompt_md#send_word()`:\n    - Put `\u003cthe last word under the cursor\u003e` at the last `*.prompt.md` file.\n- `prompt_md#send_selection()`:\n    - Put the selected lines (if no lines are selected, the entire buffer) at the last `*.prompt.md` file and switch to it.\n- `prompt_md#send(string)`:\n    - Put the argument `string` at the last `*.prompt.md` file and switch to it.\n- `prompt_md#open_prompt()`:\n    - Open the last `*.prompt.md` file.\n\n#### `*_and_open_prompt()` Variants\n\n- `prompt_md#send_at_this_path_and_open_prompt()`:\n    - Put `@\u003cthe current file path (buffer name)\u003e#\u003cthe current line number\u003e` at the last `*.prompt.md` file, then switch to the `*.prompt.md` file.\n- `prompt_md#send_at_this_path_with_hash_line_and_open_prompt()`:\n    - Put `@\u003cthe current file path (buffer name)\u003e#\u003cthe current line number\u003e` at the last `*.prompt.md` file, then switch to the `*.prompt.md` file.\n- `prompt_md#send_word_and_open_prompt()`:\n    - Put `\u003cthe last word under the cursor\u003e` at the last `*.prompt.md` file, then switch to the `*.prompt.md` file.\n- `prompt_md#send_selection_and_open_prompt()`:\n    - Put the selected lines (if no lines are selected, the entire buffer) at the last `*.prompt.md` file, then switch to the `*.prompt.md` file.\n- `prompt_md#send_and_open_prompt(string)`:\n    - Put the argument `string` at the last `*.prompt.md` file, then switch to the `*.prompt.md` file.\n\n### Submitting Prompts\n\n**NOTE**: Against their names, these functions only paste the contents of the last `*.prompt.md` file to the coding agent, it does not submit it. You need to hit the `Enter` to submit it.\n\n- `prompt_md#submit()`:\n    - Send the contents of the last `*.prompt.md` file to the coding agent and switch to its buffer.\n- `prompt_md#submit_selection()`:\n    - Send the selected lines of the buffer to the coding agent and switch to its buffer.\n    - NOTES:\n        - This function is available even if the opened file is not a `*.prompt.md` file. Because its target is not the last `*.prompt.md` file.\n        - If no lines are selected, it raises an error.\n\n## Compatibility\n\nThis plugin is written in plain-old Vim script, but I tested it only on Neovim and it depends on several Neovim-specific terminal functions. Feel free to send a pull request if you want to make it compatible with Vim.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrep%2Fprompt.md.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figrep%2Fprompt.md.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figrep%2Fprompt.md.vim/lists"}