yasnippets is a Vim plugin for snippets and file skeletons.
With this plugin you may insert text snippets. These is used for frequently typed text, such as statements in programs, copyrights, timestamps and other. This plugin supports several types of snippets: keyword snippets, newline snippets, file skeletons, etc.
To work with this plugin you need support for ruby ('+ruby' compile option and ruby language itself), ERb (embedded Ruby library for Ruby), and imaps.vim plugin.
Decompress and untar in your ~/.vim directory (or equivalent). Inside Vim, enter this:
(or equivalent directory)