-
Notifications
You must be signed in to change notification settings - Fork 0
Loads a template file and does customizable processing when editing a new file.
vim-scripts/template-file-loader
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a mirror of http://www.vim.org/scripts/script.php?script_id=198 This plugin is for loading template files when editing new files. A template file will be loaded if found, keywords in that template are expanded, and/or a customized function for that type of files is called. For all new files, the script checks to see if you have a skeleton (template) file for the extension of that file. For example, ":new temp.c" would check for the existence of "skel.c". Files without extensions are handled also - if you did ":new makefile", the script checks for the existence of "skel.noext.makefile". skel.* files are looked for in a directory specified with the environment variable $VIMTEMPLATE or in your ~/.vim directory if that env var doesn't exist. This allows you to use mutliple sets of template files - some for work files and some for personal files, for example. This plugin is meant to be customized - add your own keywords for expansion or your own file specific template functions (example provided in script). The script includes many example skel.* files - some are links to others.
About
Loads a template file and does customizable processing when editing a new file.
Resources
Stars
Watchers
Forks
Packages 0
No packages published