vim-ctrlp-commandline


Ⅰ. 插件描述

Extension for CtrlP.vim that provides command line history navigation

Ⅱ. 基本信息

创建日期:  2012-10-24
使用用户:  89
Github星:  3
插件作者:  Alejandro Exojo

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Command line history extension for CtrlP.vim

This extension provides a convenient interface for finding and executing
previous instructions given in the command line.

Is different to what sgur
provides, because this extension respects the order when presenting options, and
it doesn't use :silent when invoking commands.

Installation

Just put the file in the proper autoload directory, like CtrlP does. Or use a
plugin manager like Pathogen.

To load this extension into ctrlp, add this to your vimrc:

let g:ctrlp_extensions = ['commandline']

If you have other extensions (for example, 'mixed'):

let g:ctrlp_extensions = [
    \ 'mixed',
    \ 'commandline',
    \ ]

Usage

You can either run Ctrl-P and switch to command mode, or add the
following to your .vimrc

    command! CtrlPCommandLine call ctrlp#init(ctrlp#commandline#id())

and use :CtrlPCommandLine. Alternatively, the following mapping will
replace <C-f> in command mode:

    cnoremap <silent> <C-f> <C-c>:call ctrlp#init(ctrlp#commandline#id())<CR>

添加新评论