{"id":19916609,"url":"https://github.com/chinyikming/inline-message-rephraser","last_synced_at":"2026-03-19T12:26:48.978Z","repository":{"id":261969415,"uuid":"885860505","full_name":"ChinYikMing/inline-message-rephraser","owner":"ChinYikMing","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-10T03:53:40.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T23:33:52.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ChinYikMing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-09T15:32:06.000Z","updated_at":"2024-11-10T03:57:48.000Z","dependencies_parsed_at":"2024-11-09T16:42:20.382Z","dependency_job_id":null,"html_url":"https://github.com/ChinYikMing/inline-message-rephraser","commit_stats":null,"previous_names":["chinyikming/inline-message-rephraser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChinYikMing%2Finline-message-rephraser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChinYikMing%2Finline-message-rephraser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChinYikMing%2Finline-message-rephraser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChinYikMing%2Finline-message-rephraser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChinYikMing","download_url":"https://codeload.github.com/ChinYikMing/inline-message-rephraser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241346899,"owners_count":19948038,"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-12T21:46:30.100Z","updated_at":"2025-10-03T15:31:54.511Z","avatar_url":"https://github.com/ChinYikMing.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Paragraph Rephrasing Vim Plugin\nA Vim plugin to rephrase the selected paragraph inlinely.\n\n# Demo\nhttps://github.com/user-attachments/assets/2f2cefee-0723-4d86-b9a2-e086eac1b7a9\n\n## Feature\n1. Streamline daily task, rephrasing paragraph is my daily task especially writing commit message.\n2. Modern, leveraging the modern LLM deployment framework ([ollama](https://github.com/ollama/ollama))\n3. Security, leveraing the local LLM model.\n\n## Prerequisites\n1. Ollama server\n\nFor macOS user, install via:\n```\n$ brew install ollama\n```\nFor Linux user, install via:\n```\n$ curl -fsSL https://ollama.com/install.sh | sh\n```\n[Reference](https://github.com/ollama/ollama/blob/main/docs/linux.md)\n\n2. jq command for JSON processing, install via:\n\nFor macOS user, install via:\n```\n$ brew install jq\n```\nFor Linux user, I think it shall be installed by default.\n\n## Install the plugin\nI use [vim-plug](https://github.com/junegunn/vim-plug) as the vim plugin manager. This is feasible if you use the same manager as well.\nOpen your `~/.vimrc`, Add the below to your Plugin manager.\n```\ncall plug#begin()\n\n...\nPlug 'ChinYikMing/inline-message-rephraser'\n...\n\ncall plug#end()\n```\nReload the file or restart Vim, then you can, run `:PlugInstall` to install the plugin.\n\n## Run your local ollama server\n```\n$ ollama serve\n```\n\n## Create message rephraser model\n```\n$ ollama create msg-rephraser -f Modelfile\n```\nNote: Modelfile can be used to set the system prompt.\n\nSample Modelfile for git commit message rephrasing:\n```\nFROM llama3.2\nSYSTEM \"\"\"\nYou are a language model rephrases commit messages in the third person. Each line should be limited to 72 characters; if this limit is exceeded, continue the text on a new line. Format the output as a single paragraph.\n\nExample:\nInstruct: \"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum is simply dummy\"\n\nResponse: \"Lorem Ipsum is simply dummy text of the printing and typesetting\\n\nindustry. Lorem Ipsum is simply dummy\"\n\"\"\"\n```\n\n## Fire the plugin\n1. Open your vim\n2. Place your cursor at the point where you want to rephrase.\n3. Run `:R` to rephrase\n\n## TODO:\n1. Use an excellent Modelfile to create a more powerful message rephraser.\n2. More text selection granularity for rephrasing. E.g., line by line.\n3. Add processing status indicator inside vim when inferencing LLM.\n\n## Reference\n- [ollama RESTful API](https://github.com/ollama/ollama/blob/main/docs/api.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinyikming%2Finline-message-rephraser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchinyikming%2Finline-message-rephraser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinyikming%2Finline-message-rephraser/lists"}