Skip to content

Commit

Permalink
fix variable reference bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapette committed Jan 30, 2012
1 parent 2731904 commit a77ff24
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugin/ruby-doc.vim
Expand Up @@ -12,17 +12,17 @@ if !exists('g:ruby_doc_command')
endif

if !exists('g:ruby_doc_ruby_mapping')
let g:jquery_doc_ruby_mapping='RB'
let g:ruby_doc_ruby_mapping='RB'
endif

if !exists('g:ruby_doc_rspec_mapping')
let g:jquery_doc_rspec_mapping='RS'
let g:ruby_doc_rspec_mapping='RS'
endif

if !exists('g:ruby_doc_rails_mapping')
let g:jquery_doc_rails_mapping='RR'
let g:ruby_doc_rails_mapping='RR'
endif

execute "noremap <silent> ".g:jquery_doc_ruby_mapping." :call rubydoc#search('ruby',expand('<cword>'))<CR>"
execute "noremap <silent> ".g:jquery_doc_rspec_mapping." :call rubydoc#search('rspec',expand('<cword>'))<CR>"
execute "noremap <silent> ".g:jquery_doc_rails_mapping." :call rubydoc#search('rails',expand('<cword>'))<CR>"
execute "noremap <silent> ".g:ruby_doc_ruby_mapping." :call rubydoc#search('ruby',expand('<cword>'))<CR>"
execute "noremap <silent> ".g:ruby_doc_rspec_mapping." :call rubydoc#search('rspec',expand('<cword>'))<CR>"
execute "noremap <silent> ".g:ruby_doc_rails_mapping." :call rubydoc#search('rails',expand('<cword>'))<CR>"

0 comments on commit a77ff24

Please sign in to comment.