python_calltips


Ⅰ. 插件描述

Display Python code calltips and allows you to auto-complete your Python code

Ⅱ. 基本信息

创建日期:  2004-08-27
使用用户:  1
Github星:  2
插件作者:  tocer deng

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/python-calltips'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/python-calltips'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/python-calltips'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/python_calltips

Ⅳ. 文档说明

This script simualate code calltips in a new bottow window of Vim.
In fact, it display python help doc strings of word under the cursor
by scanning the imported modules in the current file.
this file Reference :    http://vim.sourceforge.net/scripts/script.php?script_id=73

Note: Because Python language is dynamic and the type of object is certain
         when running, the calltips is only displayed for the part of all object.  

It require Python and Vim compiled with "+python"
and MAKE SURE "set iskeyword+=."
    
It work well in my box in Win2000/XP + Vim6.3 + python2.3.
It can also work in GNU/Linux.
Note: as I know, Vim6.2 come into conflict with Python2.3, becase Vim6.2
         is compiled with Python2.1. you can update vim version to 6.3.
        Maybe yours not.

More detail is in the header of script file.

I write a tip(vimtip #778) about the script for all Pythoner. I wish you enjoy it.

添加新评论