Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend PrtInsert to support multi character action #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

d11wtq
Copy link
Member

@d11wtq d11wtq commented Aug 8, 2014

From kien#568:

PrtInsert can be mapped to insert clipboard or some register.
This extends PrtInsert to support insert any register (e.g "b
register).
Rationale: I mostly use " (unnamed register for work) so now

    let g:ctrlp_prompt_mappings = {
        \ 'PrtInsert("r\"")': ['<c-u>'],
        \ }

will work.
( when user enters c-u the content of unnamed register is entered)

    PrtInsert can be mapped to insert clipboard or some register.
    This extends PrtInsert to support insert any register (e.g "b
    register).
    Rationale: I mostly use " (unnamed register for work) so now
    let g:ctrlp_prompt_mappings = {
        \ 'PrtInsert("r\"")': ['<c-u>'],
        \ }
    will work.
    ( when user enters c-u the content of unnamed register is entered)
@tacahiroy
Copy link
Member

I don't imagine this is worth in which situation.
Any thoughts?

@Kris2k
Copy link

Kris2k commented Aug 10, 2014

I use it on rare occasion mainly for include/import directive.
I think I made it out of habit that I am able to insert into cmdline directly.
I used this mainly for buffer management. But whole process was not scripted, and manually typed.
Something across the lines
yiw:buff "
when cursor was over include directive.
I did it for my own use, I put merge request to see how others feel/need such a thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants