scripts in vi

Etusivu
Liitteet:
Viesti alkuperäisessä muodossaan
+ (text/plain)
Poista viesti
Vastaa
Lähettäjä: Greg
Päiväys:  
Aihe: 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