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

Pasta causes ctrl-p search error #17

Closed
jcdavison opened this issue Aug 1, 2018 · 4 comments
Closed

Pasta causes ctrl-p search error #17

jcdavison opened this issue Aug 1, 2018 · 4 comments

Comments

@jcdavison
Copy link

jcdavison commented Aug 1, 2018

Hi I've been a past user for quite a awhile now, had to rebuild my stack on account of laptop theft and using the new vim package tooling, i'm getting a what I believe to be syntax error when I attempt to ctrl-p search for file names that would activate pasta key mappings, notice the screenshot, I'm attempting to ctrl-p search for a file named app....js and an error occurs on the p keypress

screenshot 2018-08-01 10 35 55

I'm pretty sure pasta is the culprit here on account of the error mesage and removing the pasta package cleans things up (but obviously sucks not to have such a useful plugin). also I don't think the modifiable error is really relevant here, possibly noise or some after error not really related to the search issue.

I've thoroughly scrubbed my old .vimrc for any possible settings that might provide an override or patch for this but so far I'm seeing nothing. my packages look like

screenshot 2018-08-01 10 43 03

and relevant .vimrc lines are

let g:ctrlp_working_path_mode = 'ra'
let g:ctrlp_custom_ignore = 'bower_components'
let g:ctrlp_custom_ignore = 'node_modules'
let g:ctrlp_custom_ignore = '_site'
let g:ackprg = 'ag --nogroup --nocolor --column'
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'

I've seen the mappings for the below but honestly i'd like to stay with using p or P as that just rocks.

let g:pasta_paste_before_mapping = ',P'
let g:pasta_paste_after_mapping = ',p'

thoughts on what to do here ?

@chernesk
Copy link

chernesk commented Aug 17, 2018

Very important plugin for me.. If there's no movement on the issue, I'll take a look as soon as I can.

I have the same issue.

I can reproduce with just CtrlP and vim-pasta.

@jcdavison
Copy link
Author

@chernesk I believe that my problem was solved with the below

let g:pasta_disabled_filetypes = ['ctrlp']

@chernesk
Copy link

Thanks!

@ku1ik
Copy link
Owner

ku1ik commented Sep 8, 2018

I have just merged #16 which fixes this.

@ku1ik ku1ik closed this as completed Sep 8, 2018
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

No branches or pull requests

3 participants