Useful Vim Tips
I found a site with some interesting Vim tips. Check out these links:
A couple of highlights:
Run a macro on lines that match a pattern:
:g/vim/ norm @a
03wdei^R=2012-^R”^M^[0j
- see here
And useful information on ed: Actually using ed
I became interested in ed after learning this trick. It seems like it might be useful at some point.