Permalink
Browse files

rename executable

  • Loading branch information...
1 parent b6f49c1 commit 97ee00e1c545219d7b1be8636b7ff0a51749322f @danchoi committed Jul 7, 2011
Showing with 9 additions and 1 deletion.
  1. +8 −0 bin/ri_vim
  2. +1 −1 lib/install.rb
View
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+begin
+ require 'ri_vim'
+rescue LoadError
+ require 'rubygems'
+ require 'ri_vim'
+end
+RIVim.run
View
@@ -5,7 +5,7 @@ def self.install_vim_plugin
plugin_template = File.read(File.join(File.dirname(__FILE__), 'plugin.erb'))
vimscript_file = File.join(File.dirname(__FILE__), 'ri.vim')
- ri_vim_tool_path = File.join(File.dirname(__FILE__), 'ri_vim.rb')
+ ri_vim_tool_path = "ri_vim"
plugin_body = ERB.new(plugin_template).result(binding)
`mkdir -p #{ENV['HOME']}/.vim/plugin`

0 comments on commit 97ee00e

Please sign in to comment.