Skip to content

Instantly share code, notes, and snippets.

@nelstrom
Created January 6, 2011 20:16
Show Gist options
  • Save nelstrom/768494 to your computer and use it in GitHub Desktop.
Save nelstrom/768494 to your computer and use it in GitHub Desktop.
Ruby the ruby in the current buffer when command-R is pressed (TextMate style)
if has("autocmd")
autocmd FileType ruby nnoremap <buffer> <D-r> :!ruby %<CR>
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment