VimCompletesMe


Ⅰ. 插件描述

You don't Complete Me; Vim Completes Me! A super simple, super minimal, super light-weight tab completion plugin for Vim.

Ⅱ. 基本信息

创建日期:  2014-03-21
使用用户:  431
Github星:  660
插件作者:  Akshay Hegde

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# VimCompletesMe

A super simple, super minimal, super light-weight tab-completion plugin for Vim.

Without any configuration, the Tab key will, depending on the context, offer:

With a b:vcm_tab_complete variable, you can set the Tab key to use the
following type of completions:

If any of above types of completions fails to return any results, hitting Tab
again will switch back to Vim's local keyword completion. VimCompletesMe will go
back to trying the special completion for the next tab completion.

You can set the b:vcm_tab_complete variable interactively, or in an
autocmd. For instance, the autocmd below will use Vim Command Line
completion for all vim filetypes:

autocmd FileType vim let b:vcm_tab_complete = 'vim'

Installation

If you use Vim 8 or better, simply copy and paste:

git clone git://github.com/ajh17/VimCompletesMe.git ~/.vim/pack/vendor/start/VimCompletesMe

Once the helptags have been generated (:helptags ALL), see :h VimCompletesMe
for usage.

Thanks

  • bairui for helping me with this plugin, and for
    the kickass name.
  • You for using it!

License

Copyright (c) Akshay Hegde. Distributed under the same terms as Vim itself. See
:help license

添加新评论