Skip to content

Instantly share code, notes, and snippets.

@zph
Created February 18, 2013 20:21
Show Gist options
  • Select an option

  • Save zph/4980336 to your computer and use it in GitHub Desktop.

Select an option

Save zph/4980336 to your computer and use it in GitHub Desktop.
" Run current file in ruby
imap <Leader>rr <ESC>:!ruby %<CR>
nmap <Leader>rr :!ruby %<CR>
@maxjacobson

Copy link
Copy Markdown

@zph do you mind explaining the difference between the two lines? It seems to work fine with just the second one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment