view · edit · sidebar · attach · print · history

Running the test with one key-stroke

<< TabtoSpace | Index | WriteRangeOfFileNames >>

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.

view · edit · sidebar · attach · print · history
Page last modified on July 13, 2011, at 04:34 PM