Permalink
Browse files

Add vim-ruby

  • Loading branch information...
1 parent 3984786 commit 4463635649bd9578316cd33ce71d1d76b08b9761 @joseicosta committed Mar 21, 2011
Showing with 12 additions and 0 deletions.
  1. +1 −0 Rakefile
  2. +11 −0 vimrc.local
View
@@ -197,6 +197,7 @@ end
vim_plugin_task 'bufexplorer', 'git://github.com/vim-scripts/bufexplorer.zip.git'
vim_plugin_task 'matchit', 'git://github.com/vim-scripts/matchit.zip.git'
+vim_plugin_task 'ruby', 'git://github.com/vim-ruby/vim-ruby.git'
#vim_plugin_task 'githublink' do
# sh 'curl https://github.com/tenderlove/dot_vim/raw/master/plugin/githublink.vim > ~/.vim/plugin/githublink.vim'
View
@@ -29,3 +29,14 @@ nnoremap <CR> :noh<CR><CR>
let g:github_user = 'USER'
let g:github_token = 'TOKEN'
+
+set suffixesadd=.rb
+set path+=lib/**,test/**
+
+if has("ruby") " assume system has ruby
+ " Add stdlib of environment's ruby to path
+ let stdlib = system('ruby -rrbconfig -e"print RbConfig::CONFIG[\"rubylibdir\"]"')
+ let &l:path = &path . "," . stdlib
+endif
+
+let g:ruby_path = &path

0 comments on commit 4463635

Please sign in to comment.