pysmell.vim


Ⅰ. 插件描述

Vundle compatible repo for PySmell vim completion

Ⅱ. 基本信息

创建日期:  2011-07-29
使用用户:  2
Github星:  2
插件作者:  Sean Escriva

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# pysmell.vim (Bundle compatible)

Installation Instructions

To use PySmell omnicompletion from inside Vim, you have to have:

  1. Python support in vim (:echo has('python'))
  2. The pysmell package in the PYTHONPATH that Vim uses: python import pysmell should work.
  3. Add Bundle 'webframp/pysmell.vim' to your .vimrc and then run vim +BundleInstall +qall or :BundleInstall inside Vim.
  4. :setlocal omnifunc=pysmell#Complete Note: If you want to always use pysmell for
    python, do: autocmd FileType python setlocal omnifunc=pysmell#Complete
  5. [OPTIONAL] Select a matcher of your liking - look at pysmell.vim for
  6. Eg: :let g:pysmell_matcher='camel-case'

You can then use ^X^O to invoke Vim's omnicompletion.

You can generate debugging information by doing:

:let g:pysmell_debug=1
:e PYSMELL_DEBUG

Debug information will be appended in that buffer, copy and paste it
into the report.

添加新评论