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

Ability to open buffer twice with :CtrlPBuffer #21

Closed
pielgrzym opened this issue Oct 22, 2011 · 4 comments
Closed

Ability to open buffer twice with :CtrlPBuffer #21

pielgrzym opened this issue Oct 22, 2011 · 4 comments

Comments

@pielgrzym
Copy link

Hi,

Your plugin is simply fantastic. The only thing that is a discomfort is buffer handling. I use vim tabs as split-windows layouts. That's why I often open same buffer in different tabs. Unfortunately ctrlp's buffer selector always jumps to buffer if it's visible anywhere. It would be great if this behavior was customizable - jump to buffer or (re)open buffer.

How to reproduce:
Open 2 files in a split.
Create a tab.
Go to tab.
Try to open any file from first tab with :CtrlPBuffer
Vim will jump to first tab and activate open buffer.

Now what I'd love is to select a buffer with you plugin and use c-x,c-v or c-t to reopen it again. Ideally the plugin could exclude current buffer from search this way :)

@kien
Copy link
Owner

kien commented Oct 22, 2011

This is actually a feature to prevent opening the same file twice by mistake. I'll add an option to toggle it. Thanks for the heads up!

@kien kien closed this as completed Oct 22, 2011
@SeyZ
Copy link

SeyZ commented Apr 24, 2013

Hi, I just comment this issue in order to know what's the option? Is it available? Thanks.

@kien
Copy link
Owner

kien commented Apr 24, 2013

It's g:ctrlp_switch_buffer.

@SeyZ
Copy link

SeyZ commented Apr 24, 2013

Thanks very much @kien

nfvs pushed a commit to nfvs/ctrlp.vim that referenced this issue Aug 8, 2014
Support ctrlp_custom_ignore as function ref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants