Possible Duplicate:
Saving vim macros
I always used macros across the lines and they're a lifesaver. But lately, I've started using them to do some more complicated file manipulations, and I would like to record them to a function, or use them in some way across Vim sessions so that I don't have to re-record them every time I quit Vim.
What would be the easiest way to go about that?