Skip to content

Instantly share code, notes, and snippets.

@timuruski
Created July 16, 2015 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timuruski/9aee0e3c08a401d0739a to your computer and use it in GitHub Desktop.
Save timuruski/9aee0e3c08a401d0739a to your computer and use it in GitHub Desktop.
Vim RunCmd primer
" Usage: To execute a Ruby file with some library included
" :RunCmd ruby -i lib/my_lib
" Then you can run your script by pressing <leader>r
command! -nargs=1 RunCmd nnoremap <leader>r :w \| !clear; <args> % <CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment