commandlinecomplete.vim


Ⅰ. 插件描述

Complete words in Vim command line

Ⅱ. 基本信息

创建日期:  2016-10-21
使用用户:  1
Github星:  4
插件作者:  Jia

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Introduction

This plugin completes keywords in Vim Cmdline mode (a.k.a. Command-line mode).

Install

If you are using a Vim plugin management tool, for instance, Pathogen, then just clone this
repository to './bundle'

cd bundle
git clone https://github.com/j5shi/CommandlineComplete.vim

Usage

When editing the command-line, press <C-j> or <C-k> to complete the word before the cursor with the
matched keywords found in the current buffer and $MYVIMRC (not supported if Vim compiled without
+python support), if any.

If you want to use other keys instead of default <C-j> <C-k> to trigger the completion, please
define them in $MYVIMRC as follows:

cmap <c-p> <Plug>CmdlineCompleteBackward
cmap <c-n> <Plug>CmdlineCompleteForward

This will use <C-p> <C-n> to search backward and forward.

Without python, the complete speed will be a bit slow with large file (e.g. > 100K). Compile your
vim with python is recommended.

添加新评论