PrevInsertComplete


Ⅰ. 插件描述

Recall and insert mode completion for previously inserted text.

Ⅱ. 基本信息

创建日期:  2012-08-22
使用用户:  2
Github星:  0
插件作者:  Ingo Karkat

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

DESCRIPTION
This plugin lets you quickly recall previous insertions and insert them again
at the cursor position. Essentially, it's the built-in i_CTRL-A command
souped up with history and selection.

In insert mode, you can narrow down the candidates by typing a keyword first;
then, only insertions with a match will be offered as completion candidates.
In normal mode, you can directly recall the [count]'th previous insertion, or
have it list the last 9 insertions and let you choose.
To avoid that the many minor tactical edits clobber up the history, only
significant (longer) edits are recalled.

SEE ALSO

  • Check out the CompleteHelper.vim plugin page (vimscript #3914) for a full
      list of insert mode completions powered by it.

USAGE
CTRL-X CTRL-A           Find previous insertions (i_CTRL-A, quote.) whose
                        contents match the keyword before the cursor. First, a
                        match at the beginning is tried; if that returns no
                        results, it may match anywhere.
                        Further use of CTRL-X CTRL-A will append insertions done
                        after the previous recall.

[count]q<CTRL-@>        Recall and append previous [count]'th insertion.

[count]q<CTRL-A>        Lists the last 9 insertions, then prompts for a number.
                        The chosen insertion is appended [count] times.

添加新评论