Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 42ed86b486
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (33 sloc) 1.383 kB
" Vim plug-in
" Author: Peter Odding <peter@peterodding.com>
" Last Change: September 4, 2011
" URL: http://peterodding.com/code/vim/pyref/
" Support for automatic update using the GLVS plug-in.
" GetLatestVimScripts: 3104 1 :AutoInstall: pyref.zip
" Don't source the plug-in when it's already been loaded or &compatible is set.
if &cp || exists('g:loaded_pyref')
finish
else
let g:loaded_pyref = 1
endif
" Make sure the default paths below are compatible with Pathogen.
let s:plugindir = expand('<sfile>:p:h') . '/../misc/pyref'
" Default location of index file, should be fine in most cases.
if !exists('g:pyref_index')
let g:pyref_index = s:plugindir . '/index'
endif
" Local Python documentation as installed by e.g. sudo apt-get install python2.6-doc
if !exists('g:pyref_python')
let g:pyref_python = '/usr/share/doc/python2.6/html'
endif
" Local Django documentation as installed by e.g. sudo apt-get install python-django-doc
if !exists('g:pyref_django')
let g:pyref_django = '/usr/share/doc/python-django-doc/html'
endif
" Automatic command to enable key mapping in Python buffers.
augroup PluginPyRef
autocmd! FileType python call xolox#pyref#enable()
augroup END
" User command that looks up given argument and supports completion.
command! -nargs=? -complete=customlist,xolox#pyref#complete PyRef call xolox#pyref#lookup(<q-args>)
" vim: ts=2 sw=2 et
Jump to Line
Something went wrong with that request. Please try again.