Created
August 3, 2013 18:21
-
-
Save denysonique/6147447 to your computer and use it in GitHub Desktop.
when Ruby file run with Ruby, when Gemfile run bundle
This file contains hidden or 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
set shiftwidth=2 | |
set softtabstop=2 | |
function Rb_or_gemfile() | |
if bufname('%') == 'Gemfile' | |
execute '!bundle' | |
else | |
execute '!ruby %' | |
endif | |
endfunction | |
map <C-j> :w <CR>:call Rb_or_gemfile()<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment