I use the following Vim macro a lot (it puts the current line inside XML tags):
I^[A
So I saved it into my .vimrc
Today I discovered a vim plug-in called MARVIM (http://www.vim.org/scripts/script.php?script_id=2154).
It is capable of storing macros and executing them later using shortcuts.