sponsor Vim development Vim logo Vim Book Ad

Simple templates : Simple template insertion

 script karma  Rating 18/6, Downloaded by 1237  Comments, bugs, improvements  Vim wiki

created by
Javier Cardona
script type
These are three very simple mappings that save me a lot of time...

Just create a directory with templates (i.e. a latex article, a copyright notice, a function header,...).  Edit TEMPLATE_HOME in the script, and you'll be able to use the following commands:

:TT c  --> print template TEMPLATE_HOME/c on top of file (template top)
:TH f  --> print template TEMPLATE_HOME/f on current line (template here)
:LST   --> lists contents of templates directory

Hope you find it useful!

install details
Just copy to your .vimrc or put it on your plugins directory

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
templates.vim 1.0 2004-05-10 6.0 Javier Cardona 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.