Is it possible after editing a ruby program in Vim to run it while still in the editor, not using the command line?
This is an old question but I wanted to tweak the answer by @xavier
Put this in your .vimrc
and you will be able to run the current ruby script without having to confirm hitting ENTER each time:
autocmd BufRead, *.rb nmap <leader>r :silent !{ruby %}<cr>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With