All Projects → yuku → vim-ref-ri

yuku / vim-ref-ri

Licence: other
A vim-ref and Unite.vim source for ri.

Programming Languages

Vim Script
2826 projects

#vim-ref-ri A vim-ref source for ri.

##usage

###vim-ref

:Ref ri Net::HTTP

" instance method
:Ref ri Net::HTTP#get

" class method
:Ref ri Net::HTTP.new

###Unite.vim

:Unite ref/ri

##arguments This source accepts the argument of the following three forms.

  • class
  • class.class_method
  • class#instance_method

##customizing

g:ref_ri_cmd
Specifies the ri command.
g:ref_ri_use_cache
Cache the classes and methods at the time of completion. The deault value is 0.

Cache are not cleared automatically. You may be necessary to following settings.

# lib/rubygems_plugin.rb

Gem.post_install do
  cache_file = File.expand_path '~/.cache/vim-ref/ri/classes'
  File.unlink cache_file is File.exist? cache_file
end<`0`>

Gem.post_uninstall do
  cache_file = File.expand_path '~/.cache/vim-ref/ri/classes'
  File.unlink cache_file is File.exist? cache_file
end

#Licence The MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].