scripts in vi

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Greg
Date:  
Subject: scripts in vi
I would like to know how to execute scripts in vi.
Can someone help me with this?

For example a script that would insert a date into a document.

Greg