Created
July 16, 2015 18:14
-
-
Save timuruski/9aee0e3c08a401d0739a to your computer and use it in GitHub Desktop.
Vim RunCmd primer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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