{"id":13898344,"url":"https://github.com/tomtom/templator_vim","last_synced_at":"2025-04-30T05:23:22.013Z","repository":{"id":5754453,"uuid":"6967224","full_name":"tomtom/templator_vim","owner":"tomtom","description":"Multi-file project templates using skeleton/snippets engines","archived":false,"fork":false,"pushed_at":"2015-11-24T18:00:15.000Z","size":47,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T20:49:50.885Z","etag":null,"topics":["vim","vim-plugin","vim-script"],"latest_commit_sha":null,"homepage":"http://www.vim.org/scripts/script.php?script_id=4345","language":"VimL","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/tomtom.png","metadata":{"files":{"readme":"README","changelog":"CHANGES.TXT","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-02T13:02:11.000Z","updated_at":"2024-02-14T13:49:56.000Z","dependencies_parsed_at":"2022-09-06T02:51:51.899Z","dependency_job_id":null,"html_url":"https://github.com/tomtom/templator_vim","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Ftemplator_vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Ftemplator_vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Ftemplator_vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomtom%2Ftemplator_vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomtom","download_url":"https://codeload.github.com/tomtom/templator_vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251646194,"owners_count":21620888,"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":["vim","vim-plugin","vim-script"],"created_at":"2024-08-06T18:04:14.750Z","updated_at":"2025-04-30T05:23:21.994Z","avatar_url":"https://github.com/tomtom.png","language":"VimL","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"In many programming languages/environments, you usually work with a set of files \nthat belong together. E.g. if you create a c file, you usually also want to \ncreate a h header file. If you create a viewer file, you usually also want to \ncreate corresponding model and controller files. If you want to create a \nlibrary file, you usually also want to create some test file etc. This is were \ntemplator comes in.\n\nThe templator plugin allows the creation of filesets based on multi-file \ntemplates. Possible use cases:\n\n    - Create multi-file projects\n    - Create multiple-files within a project, e.g.\n        - a source file and the corresponding header file\n        - a source file and the corresponding test file\n        - files for a model, a view, and a controller\n\nTemplates can be written in any code template/skeleton/snippets style. At the \ntime of writing, templates can be written in:\n\n    - template vim (see |templator-tvim|) (\"tvim\" extension)\n    - tskeleton (vimscript #1160) (\"tskel\" extension)\n\nIt shouldn't be too difficult to add support for additional template \nengines.\n\nThe |:Templator| command can be used to create multi-file projects.\n\nExample 1: Create files for the \"vimplugin\" template-set in the current root \ndirectory, which usually is the current working directory unless \n|b:templator_root_dir| is set (see |templator-arguments| for details): \u003e\n\n    :Templator vimplugin myplugin\n\n\"myplugin\" is the plugin's name. The argument is required by the \ntemplate set used in this example. It is also possible to use named \narguments.\n\nExample 2: Create files for the \"vimplugin\" template-set in some directory (the \ndirectory is created if it doesn't already exist): \u003e\n\n    :Templator ~/src/foo/bar/vimplugin myplugin\n\nTemplates are kept in \"templator\" subdirectories in your 'runtimepath' (e.g. \n~/.vim/templator). A subdirectory's name consists of \n\"TEMPLATE_NAME.TEMPLATE_TYPE\". TEMPLATE_NAME is the name that is used for the \n|:Templator| command. TEMPLATE_TYPE is the name of the template engine used to \nexpand file templates.\n\nTemplates consist of a bunch of files and an optional vim script (see \n|templator-scripts|) that is run after creating the files.\n\n\n-----------------------------------------------------------------------\n\nStatus:  Experimental\nInstall: See http://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT\nSee http://github.com/tomtom for related plugins.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomtom%2Ftemplator_vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomtom%2Ftemplator_vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomtom%2Ftemplator_vim/lists"}