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

Close ctrlp #10

Closed
DAddYE opened this issue Sep 21, 2011 · 9 comments
Closed

Close ctrlp #10

DAddYE opened this issue Sep 21, 2011 · 9 comments
Labels

Comments

@DAddYE
Copy link

DAddYE commented Sep 21, 2011

Hi, finally I think I found the problem,

when I invoke ctrlp, then I press <esc> when I can found the file, this will not close ctrlp and switch to another buffer. Re-calling ctrlp create a new instance.

How I can close it when no matches was found?

@kien
Copy link
Owner

kien commented Sep 21, 2011

That sounds like <esc> isn't working. Can you use <c-c> or <c-g> (CTRL-C or CTRL-G) to close CtrlP?

Also, are you using Vim in terminal or are you using gVim/MacVim?

@DAddYE
Copy link
Author

DAddYE commented Sep 21, 2011

ctrlg is working, Im using vim from terminal.

@kien
Copy link
Owner

kien commented Sep 21, 2011

What does it show when you run :echo &term from Vim's command line? And what OS are you on?

@DAddYE
Copy link
Author

DAddYE commented Sep 21, 2011

Im under lion, using iTerm

xterm-256color

@DAddYE
Copy link
Author

DAddYE commented Sep 21, 2011

notice this doesn't happen even, sometimes specially when I search something and I got "no matches"

@kien
Copy link
Owner

kien commented Sep 21, 2011

This is a really odd behavior and most likely has something to do with the control sequences in terminal (again). So maybe I'll install iTerm and try something out. But for the mean time, I guess you'll just have to use <c-c> or <c-g> to exit CtrlP.

@DAddYE
Copy link
Author

DAddYE commented Sep 21, 2011

Okey Thank you!

@kien
Copy link
Owner

kien commented Sep 23, 2011

OK, I tried to reproduce this with iTerm 1.0 and Vim 7.2 on Snow Leopard but couldn't; <esc> seemed to work fine in both situations, matches and no matches. I guess there's something else in your setup interfering with the <esc> key.

So if you don't mind, can you capture the error message like this?

  1. Run :redir @a (redirect to register a)
  2. Call CtrlP and try to reproduce the error with <esc> and "no matches".
  3. Exit CtrlP with <c-c> or <c-g>
  4. Run :redir END
  5. Get the content from register a with "ap and post it here.

@kien
Copy link
Owner

kien commented Sep 29, 2011

Closing this for now as unreproducible and since it's a minor issue.

@kien kien closed this as completed Sep 29, 2011
nfvs pushed a commit to nfvs/ctrlp.vim that referenced this issue Aug 8, 2014
Make README screenshot narrower to fit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants