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...
-
Should work with any Vim command. Try Vimux, Dispatch, or plain old !.
$ vim lib/whatever.rb
# Hack hack
:RagainSetAndRun !rake test
# Hack hack
:RagainRun " This runs `!rake test` again
See the documentation for more.