{"id":16070336,"url":"https://github.com/Jorenar/miniSnip","last_synced_at":"2025-10-22T15:31:44.221Z","repository":{"id":50103023,"uuid":"266652282","full_name":"Jorenar/miniSnip","owner":"Jorenar","description":"Lightweight snippet plugin for Vim","archived":false,"fork":false,"pushed_at":"2025-05-02T20:58:22.000Z","size":80,"stargazers_count":54,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-17T14:55:30.756Z","etag":null,"topics":["plugin","snippets","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jorenar.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":"2020-05-25T00:59:21.000Z","updated_at":"2025-05-16T13:40:19.000Z","dependencies_parsed_at":"2023-12-10T03:19:43.022Z","dependency_job_id":"b5f64cdb-e9ce-4438-8be1-a875949f11b8","html_url":"https://github.com/Jorenar/miniSnip","commit_stats":null,"previous_names":["jorenar/minisnip","jorengarenar/minisnip"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jorenar/miniSnip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorenar%2FminiSnip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorenar%2FminiSnip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorenar%2FminiSnip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorenar%2FminiSnip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jorenar","download_url":"https://codeload.github.com/Jorenar/miniSnip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jorenar%2FminiSnip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280459273,"owners_count":26334305,"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-10-22T02:00:06.515Z","response_time":63,"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":["plugin","snippets","vim","vim-plugin"],"created_at":"2024-10-09T07:02:10.742Z","updated_at":"2025-10-22T15:31:43.928Z","avatar_url":"https://github.com/Jorenar.png","language":"Vim Script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"```\n        ┏━━━┓\n        ┃┏━┓┃\n┏┓┏┳┳━┓┏┫┗━━┳━┓┏┳━━┓\n┃┗┛┣┫┏┓╋╋━━┓┃┏┓╋┫┏┓┃\n┃┃┃┃┃┃┃┃┃┗━┛┃┃┃┃┃┗┛┃\n┗┻┻┻┻┛┗┻┻━━━┻┛┗┻┫┏━┛\n                ┃┃\n                ┗┛\n```\n\n**miniSnip** is lightweight and minimal snippet plugin written in Vim Script.\n\n## Installation\n\nUse your favourite plugin manager to install miniSnip:\n\n#### [minPlug](https://github.com/Jorengarenar/minPlug):\n```vim\nMinPlug Jorengarenar/miniSnip\n```\n\n#### [vim-plug](https://github.com/junegunn/vim-plug):\n```vim\nPlug 'Jorengarenar/miniSnip'\n```\n\n#### Vim's packages\n```bash\ncd ~/.vim/pack/plugins/start\ngit clone git://github.com/Jorengarenar/miniSnip.git\n```\n\n#### [NeoBundle](https://github.com/Shougo/neobundle.vim)\n```vim\nNeoBundle 'Jorengarenar/miniSnip'\n```\n\n## Usage\n\nTo get started with miniSnip, in your runtime (on UNIX usually: `~/.vim`)\ncreate a directory called `miniSnip/all`. Then placing a file called `foo.snip`\ninside it will create the `foo` snippet, which you can access by typing\n`foo\u003cC-j\u003e` in insert mode.\n\nFiletype-aware snippets are also available. For example, a file called\n`main` in `~/.vim/miniSnip/java/main.snip` will create a `main` snippet only when\n`filetype=java`, allowing you to add a `main` for C, `main` for C++ and so on.\n\nSee [the documentation](doc/miniSnip.txt) to learn the snippet syntax and options.\n\n## Features\n\n  * default values of placeholders (e.g. `\u003c{example}\u003e`)\n  * references to previous tags (e.g. `\u003c{~2}\u003e` refers to second placeholder)\n  * evaluation of Vim functions (e.g. `\u003c{!expand('%')}\u003e`)\n  * ins-completion function\n  * `\u003c{+}\u003e` will be targeted last (equivalent of `$0` in UltiSnips)\n  * filetype-aware snippets\n  * changing delimiters, snippet file filetype etc. (`:h miniSnip-configuration`)\n  * local snippets (`:h g:miniSnip_local`)\n  * named placeholders (`:h g:miniSnip_named`)\n  * global and local to buffer configuration (`:h g:miniSnip-configuration`)\n\n## Examples\n\n* `c/incl.snip`\n```\n? Include header file\n#include \"\u003c{!substitute(expand('%:t'), '\\.c', '\\.h', '')}\u003e\"\n```\n\n* `html/html.snip`\n```\n? HTML basic structure\n$ `{{` `}}`\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"{{en}}\"\u003e\n\u003chead\u003e\n  \u003cmeta charset=\"UTF-8\"\u003e\n  \u003ctitle\u003e{{Joren}}\u003c/title\u003e\n  \u003cmeta name=\"author\" content=\"{{~1}}\"\u003e\n  \u003cmeta name=\"description\" content=\"{{}}\"\u003e\n  \u003cmeta name=\"keywords\" content=\"{{example}}\"\u003e\n  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n  \u003clink rel=\"stylesheet\" href=\"{{style.css}}\"\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  {{}}\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n* `sql/join_no_match.snip`\n```\nSELECT \u003c{table1}\u003e.\u003c{ID_1}\u003e\nFROM \u003c{~1}\u003e\nLEFT JOIN \u003c{table2}\u003e ON \u003c{~1}\u003e.\u003c{~2}\u003e = \u003c{~3}\u003e.\u003c{ID_2}\u003e\nWHERE \u003c{~3}\u003e.\u003c{~4}\u003e IS NULL\n```\n\n* `sh/wrapper_exec.snip`\n```\nfor dir in $(echo \"$PATH\" | tr \":\" \"\\n\" | grep -Fxv \"$(dirname $0)\"); do\n    [ -x \"$dir/$(basename $0)\" ] \u0026\u0026 exec \"$dir/$(basename $0)\" $@\ndone\n```\n---\n\nFor more information, see [the documentation](doc/miniSnip.txt).\n\n---\n\nBased on [vim-minisnip](https://github.com/joereynolds/vim-minisnip)\n\nMain differences:\n  * reference tags aren't relative, but absolute, i.e. `\u003c{~1}\u003e` will refer to\n    first placeholder insted to the previous, `\u003c{~2}\u003e` will refer to the second\n    instead of the penultimate\n  * references aren't in quotes\n  * references to bigger numbers than 9\n  * descriptions (`:h g:miniSnip_descmark`)\n  * option to change delimiters for specific snippet (`:h g:miniSnip_delimChg`)\n  * extending filetypes (`:h g:miniSnip_extends`)\n  * cursor at the end of snippets without placeholders, not the beginning\n  * directories instead of prefixes for snippets file management\n  * respect `expandtab`\n  * one final placeholder (`:h g:miniSnip_finalTag`) instead of final delimiters\n  * local snippets\n  * named placeholders\n  * configurable character class used to get snippet name\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJorenar%2FminiSnip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJorenar%2FminiSnip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJorenar%2FminiSnip/lists"}