mu-template : Mu template (fill-out forms, expression substitution)
script karma |
Rating 32/16,
Downloaded by 4367 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Gergely Kontra |
|
script type |
utility |
|
description |
This is a micro-template file.
Templates should be in $VIMTEMPLATES directory.
The default is $VIM/vimfiles/template.
Template files should be named template.&ft (&ft is the filetype)
If filetype is not known, template.unknown will be read.
You shouldn't modify the script (unless you have <C-J> mapped..). All customizing is inside the templates.
You can insert 'fields' to the template. With the chars '<<' and '>>'.
Editing will be started at the first field in selectmode.
You can jump to the next field by pressing <C-J>
(sorry <C-J> is remapped in normal, insert (and visual) mode)
Expression evaluation:
Use the ¡ (press <m-!>) symbol to surround your expression.
Eg.: Creation date: ¡strftime('%c')¡
The template set is very limited, but you will get the idea, I hope.
(At least I hope you can learn some programming tricks)
FEEDBACK PLEASE! |
|
install details |
Unzip, copy to the right directory ($VIM/vimfiles/), customize templates. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|