sponsor Vim development Vim logo Vim Book Ad

pythoncomplete : Python Omni Completion

 script karma  Rating 1317/398, Downloaded by 54422  Comments, bugs, improvements  Vim wiki

created by
aaron griffin
 
script type
ftplugin
 
description
This is the pythoncomplete omni-completion script shipped with vim 7.  Updated versions will appear here, as the vim tarballs do not ship with updated runtime files.

To use this plugin, make sure ftplugins are enabled, via "filetype plugin on".
Filetype detection will set the omnifunction appropriately.

Features:
   Dynamic type deduction (without actually evaluating statements)
   Local visibility handling (will complete from all parent scopes).
   completeopt=preview support, displaying python docstrings
   Function argument completion (whenever possible)

Requires Vim7 compiled with +python support.
 
install details
Place this file in ~/.vim/autoload/ or $VIMRUNTIME/autoload/
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
pythoncomplete.vim 0.9 2009-06-18 7.0 aaron griffin NOTE: This is a re-upload. Previous version had old version/updated headers still

* Fixed docstring parsing for classes and functions
* Fixed parsing of *args and **kwargs type arguments
* Better function param parsing to handle things like tuples and lambda defaults args
pythoncomplete.vim 0.8 2007-10-08 7.0 aaron griffin * Fixed an issue where the FIRST assignment was always used instead of using a subsequent assignment for a variable
* Fixed a scoping issue when working inside a parameterless function
pythoncomplete.vim 0.7 2006-10-19 7.0 aaron griffin * Fixed function list sorting (_ and __ at the bottom)
* Removed newline removal from docs.  It appears vim handles
  these better in recent patches
pythoncomplete.vim 0.6 2006-05-14 7.0 aaron griffin Bug fix version:
* Fixed argument completion
* Removed the 'kind' completions, as they are better indicated with real syntax
* Added tuple assignment parsing (whoops, that was forgotten)
* Fixed import handling when flattening scope (visiblity)
pythoncomplete.vim 0.5 2006-05-14 7.0 aaron griffin Initial upload
ip used for rating: 18.117.196.217

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github