document updated 11 years ago, on Nov 2, 2013
Vim has the ability to apply an operator over a motion. For instance, in the command:
gU$
The "gU" specifies an operation, and "$" is a movement that specifies the range to do it over.
This page describes how to create your own functions for these.