To learn the basics, vimtutor is enough, but for progress, this book is a nugget. The treatment of especially macros deserves careful reading and gave me a lot of time for all of repetitive editing tasks, but to write a script which would be too long. A reference for who wants to learn the best text editor (which say "some").