cmdlinecomplete


Ⅰ. 插件描述

complete command-line (: / etc.) from the current file

Ⅱ. 基本信息

创建日期:  2008-05-08
使用用户:  3
Github星:  1
插件作者:  Menghan Zheng

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'menghan/cmdlinecomplete-or-are-not'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'menghan/cmdlinecomplete-or-are-not'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'menghan/cmdlinecomplete-or-are-not'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2222

When editing the command-line (: / etc.), press Ctrl-P or Ctrl-N to complete the word before the cursor, using keywords in the current file. E.g: you want to search for "elephant" in the buffer, just type /ele and press Ctrl-P. So long as "elephant" is in the buffer, you will get "ele" completed into "elephant".

This script is functional similar with (but far more better than) SearchComplete vimscript #474 (version 1.1).

添加新评论