asyncomplete-omni.vim


Ⅰ. 插件描述

Omni completion source for asyncomplete.vim

Ⅱ. 基本信息

创建日期:  2017-05-22
使用用户:  25
Github星:  31
插件作者:  yami-beta

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/yami-beta/asyncomplete-omni.vim

Ⅳ. 文档说明

# asyncomplete-omni.vim

Omni completion source for asyncomplete.vim

Install

Plug 'prabirshrestha/asyncomplete.vim'
Plug 'yami-beta/asyncomplete-omni.vim'

Register asyncomplete-omni.vim

call asyncomplete#register_source(asyncomplete#sources#omni#get_source_options({
\ 'name': 'omni',
\ 'whitelist': ['*'],
\ 'blacklist': ['c', 'cpp', 'html'],
\ 'completor': function('asyncomplete#sources#omni#completor')
\  }))

Note

If omnifunc change cursor position, asyncomplete-omni.vim does not work correctly.

For example, c, cpp, HTML are blacklisted above because Vim's default omnifunc repositions the cursor leading to quirky behaviour. You can reenable if you are using a more appropriate omnifunc.

Not work correctly

  • rubycomplete#Complete

添加新评论