Run the same command over and over again in Vim.
Run a Vim command, saving it for later runs. Think unit test, ad-hoc script...
$ vim lib/whatever.rb # Hack hack :RagainSetAndRun !rake test # Hack hack :RagainRun " This runs `!rake test` again
See the documentation for more.