sponsor Vim development Vim logo Vim Book Ad

mu-template : Mu template (fill-out forms, expression substitution)

 script karma  Rating 32/16, Downloaded by 4144  Comments, bugs, improvements  Vim wiki

created by
Gergely Kontra
script type
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)
install details
Unzip, copy to the right directory ($VIM/vimfiles/), customize templates.

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
mu-template.zip 0.11 2002-02-27 6.0 Gergely Kontra Fixes, Luc Herminettes improvements:
upside down ? for vim execution.
Harmony with other mark-jump implementation :-)
mu-template.zip 0.1 2002-02-20 6.0 Gergely Kontra Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.