diff options
Diffstat (limited to 'ftplugin/ruby.vim')
-rw-r--r-- | ftplugin/ruby.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index 9c9289b1..edca30dd 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -113,7 +113,7 @@ else if !exists('g:ruby_default_path') if has("ruby") && has("win32") ruby ::VIM::command( 'let g:ruby_default_path = split("%s",",")' % $:.join(%q{,}) ) - elseif executable('ruby') + elseif executable('ruby') && !empty($HOME) let g:ruby_default_path = s:query_path($HOME) else let g:ruby_default_path = map(split($RUBYLIB,':'), 'v:val ==# "." ? "" : v:val') |