ctrlr.vim


Ⅰ. 插件描述

Ex command history reverse-i-search for Vim

Ⅱ. 基本信息

创建日期:  2013-06-09
使用用户:  29
Github星:  21
插件作者:  Vic Goldfeld

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Introduction Flattr this plugin

CtrlR faithfully emulates the reverse search functionality found in the Bourne-again shell because, well, I couldn't vim without it anymore. My every ^P just screamed for ^R.

But how could I bind it to that key when it already does register insertion? By default, if you press ^R with an empty command line, the reverse-i-search will be brought up, whereas if you have typed anything, the native action will be executed. This should be mostly intuitive since bash's own reverse search ignores anything you have typed so far when you invoke it (just earlier today while using ^R in bash I got why that is a brilliant feature, but now I can't seem to remember.)

Bitdeli Badge

添加新评论