Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

suy/vim-ctrlp-commandline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

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>

About

Extension for CtrlP.vim that provides command line history navigation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /