Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Move the index (and spider) to the proper location

  • Loading branch information...
commit 42ad155a74df5294c8bea2c2295bae02a9d18826 1 parent 3a8062f
Peter Odding authored May 25, 2011
0  index → misc/pyref/index
File renamed without changes
0  spider.py → misc/pyref/spider.py
File renamed without changes
11  plugin/pyref.vim
@@ -3,7 +3,7 @@
3 3
 " Last Change: May 25, 2011
4 4
 " URL: http://peterodding.com/code/vim/pyref/
5 5
 " License: MIT
6  
-" Version: 0.7.2
  6
+" Version: 0.7.3
7 7
 
8 8
 " Support for automatic update using the GLVS plug-in.
9 9
 " GetLatestVimScripts: 3104 1 :AutoInstall: pyref.zip
@@ -15,13 +15,12 @@ else
15 15
   let g:loaded_pyref = 1
16 16
 endif
17 17
 
  18
+" Make sure the default paths below are compatible with Pathogen.
  19
+let s:plugindir = expand('<sfile>:p:h') . '/../misc/pyref'
  20
+
18 21
 " Default location of index file, should be fine in most cases.
19 22
 if !exists('g:pyref_index')
20  
-  if xolox#misc#os#is_win()
21  
-    let g:pyref_index = '~/vimfiles/misc/pyref_index'
22  
-  else
23  
-    let g:pyref_index = '~/.vim/misc/pyref_index'
24  
-  endif
  23
+  let g:pyref_index = s:plugindir . '/index'
25 24
 endif
26 25
 
27 26
 " Local Python documentation as installed by e.g. sudo apt-get install python2.6-doc

0 notes on commit 42ad155

Please sign in to comment.
Something went wrong with that request. Please try again.