kien/ctrlp.vim — Issue #106: Expose invocation of ctrl-p extension command directly
Author: jeetsukumaran
Created: 2012-01-21 04:57:11+00:00
State: open

Maybe there is already a way to do this ...

But would it be possible to somehow allow users to specify and optional key-mapping to directly invoke an extension?

It does not have to be a high-level command (though that's ok as well), a globally-available function would work.

For example, say I would like to map - to the "buffertag" extension or "line" extension, what could I put in my ~/.vimrc to allow this?

nnoremap :call CtrlPExtension('line')