sponsor Vim development Vim logo Vim Book Ad

AutoTmpl : Plugin for using templates when editing new files

 script karma  Rating 20/5, Downloaded by 519  Comments, bugs, improvements  Vim wiki

created by
Lluis Vilanova
 
script type
utility
 
description
The purpose of this script is to automatically load predefined template files
when editing new files.

The templates can contain fields that are dynamically filled in order to customize
them at creation time (e.g. date of creation).

Currently, templates are provided for:
- C
- C++
- C/C++ headers
- Python
- Shell scripts
- Vim plugins

The plugins use some variables that can be defined in your .vimrc:
- let g:author = "your name"
- let g:email = "your email"
- let g:footer = "the footer you want vim to use for your files (e.g. tabstop=4 textwidth=100)"

Please send me an email with any improvements you think are worth.
 
install details
To install it for the first time, download the plugin and
decompress it into your local vim directory (~/.vim).

Once installed you can update it with vimscript #642.

In order to update your help tags you have to run >
        :helptags ~/.vim/doc
<

You can see this help with >
        help AutoTmpl
>
 

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
AutoTmpl.tar.gz 1 2008-11-27 6.0 Lluis Vilanova Initial upload
ip used for rating: 52.14.150.55

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.
   
Vim at Github