{"id":15699025,"url":"https://github.com/pgilad/vim-skeletons","last_synced_at":"2025-05-08T21:16:48.878Z","repository":{"id":54976809,"uuid":"20322427","full_name":"pgilad/vim-skeletons","owner":"pgilad","description":"Quickly scaffold template files in your favorite editor using UltiSnips templates","archived":false,"fork":false,"pushed_at":"2021-01-18T14:04:15.000Z","size":35,"stargazers_count":28,"open_issues_count":5,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-08T21:16:44.258Z","etag":null,"topics":["generator","productivity","script","skeletons","vim","vim-plugin","vimscript"],"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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgilad.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}},"created_at":"2014-05-30T08:26:34.000Z","updated_at":"2023-11-05T13:09:54.000Z","dependencies_parsed_at":"2022-08-14T08:00:33.649Z","dependency_job_id":null,"html_url":"https://github.com/pgilad/vim-skeletons","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Fvim-skeletons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Fvim-skeletons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Fvim-skeletons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Fvim-skeletons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgilad","download_url":"https://codeload.github.com/pgilad/vim-skeletons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253149621,"owners_count":21861740,"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":["generator","productivity","script","skeletons","vim","vim-plugin","vimscript"],"created_at":"2024-10-03T19:37:30.209Z","updated_at":"2025-05-08T21:16:48.855Z","avatar_url":"https://github.com/pgilad.png","language":"Vim script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"# vim-skeletons\n\n\u003e Quickly scaffold template files in your favorite editor using UltiSnips templates\n\n## Intro\n\n![Basic output example of vim-skeleton](media/screenshot.png)\n\nThis project is based on [skeletons.vim](https://github.com/tobyS/skeletons.vim) and expanded\nfrom it.\n\nThe idea is to scaffold skeleton files when creating new files with vim, but add the power of\nsnippets generating using UltiSnips.\n\nFor any information on the snippets engine see [UltiSnips](https://github.com/SirVer/ultisnips)\n\n## Installation\n\nThis plugin follows the standard runtime path structure, and can be installed with a variety of plugin managers:\n\n#### [NeoBundle](https://github.com/Shougo/neobundle.vim)\n`NeoBundle 'pgilad/vim-skeletons'`\n\n#### [Pathogen](https://github.com/tpope/vim-pathogen)\n`git clone https://github.com/pgilad/vim-skeletons ~/.vim/bundle/vim-skeletons`\n\n#### [Vundle](https://github.com/gmarik/vundle)\n`Plugin 'pgilad/vim-skeletons'`\n\n#### [VAM](https://github.com/MarcWeber/vim-addon-manager)\n`call vam#ActivateAddons([ 'vim-skeletons' ])`\n\n####  Manual\ncopy all of the files into your `~/.vim` directory\n\n## Usage\n\n`vim-skeletons` is shipped with sample skeletons, thus you will need to either add your\nown skeletons or add a skeleton repository.\n\n**PRs for example skeletons will be happily accepted**\n\nTo activate `vim-skeletons` you can use `:SkeletonsOn`. Or just set in your `.vimrc`:\n```vim\nlet skeletons#autoRegister = 1\n```\n\nYou can change the skeletons directory:\n```vim\nlet skeletons#skeletonsDir += \"~/.dotfiles/vim/skeletons\"\n```\n\n## Skeletons\n\n### Loading and Filetypes\n\nSkeletons are loaded from `skeletons#skeletonsDir`. They follow the following pattern:\n\n`skeleton-name.\u003cextra\u003e.\u003cfiletype\u003e`, for example:\n\n- `skeleton.js` for Javascript files.\n- `skeleton.angular.js` for Angular.js Javascript files.\n- `skeleton.backbone.js` for Backbone.js Javascript files.\n- `skeleton.jquery.js` for Jquery Javascript files.\n\nYou can also have multiple skeletons for a filetype, and when you open a new file `vim-skeletons` will ask you which\nskeleton you want to use for that filetype, the default being the file without the extra field. In our examples `skeleton.js`.\n\n### Skeleton Details\n\nA skeleton can be:\n- A blank file\n- A file with any text in it\n- An `UltiSnips` template\n\nAfter creating a new file, `vim-skeleton` will interpolate the skeleton using the `UltiSnips` engine,\nthus allowing you to set defaults, use snippet structure and anything else you can think of.\n\nAn example skeleton `skeleton.php` is included:\n\n```php\n\u003c?php\n\nnamespace ${1:`!v PathToNamespace(expand(\"%:h\"))`};\n\nclass ${2:`!v expand(\"%:t:r\")`}\n{\n    ${3}\n}\n```\n\n## Global Commands\n\n### SkeletonsOn\n\nCall `:SkeletonsOn` to make `vim-skeletons` auto-register for creation of new files.\n\n### SkeletonsOff\n\nCall `:SkeletonsOff` to disable `vim-skeletons` for new files.\n\n### SkeletonsReload\n\nIf make any changes to the skeletons directory or files you can reload them via `:SkeletonsReload`.\n\n## License\n\nMIT © [Gilad Peleg](https://www.giladpeleg.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgilad%2Fvim-skeletons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgilad%2Fvim-skeletons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgilad%2Fvim-skeletons/lists"}