If you write the following in your ~/.vimrc
map , :w<cr>:! ruby %<cr>
the key "," will run the file by ruby interpreter from the vim interface. This is specially useful when you are testing. No more opening and closing the file, just hit ",".
:map . :w<cr>:! rcov %<cr>
will run rcov if you push the "." key.