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

Navigate to open buffer/window? #77

Closed
trusktr opened this issue Jan 23, 2016 · 12 comments
Closed

Navigate to open buffer/window? #77

trusktr opened this issue Jan 23, 2016 · 12 comments

Comments

@trusktr
Copy link

trusktr commented Jan 23, 2016

Is there a way to use Buffers or Windows to navigate to the existing window (instead of new tab or split)?

@junegunn
Copy link
Owner

Press enter? Not sure if I understood your question.

@trusktr
Copy link
Author

trusktr commented Jan 23, 2016

Pressing enter opens the file in the current window, but leaves the existing window (which may be in another tab) open. I'd like to switch to that window/tab instead of making a new window.

@junegunn
Copy link
Owner

:Windows command does exactly that.

@trusktr
Copy link
Author

trusktr commented Jan 23, 2016

Indeed, sorry about that. Don't know why I thought that. It works the first time, but after that I'm getting an error like this with both Windows and Buffers:

Error detected while processing function 267:                                                                                                                                      
line   30:                                                                                                                                                                         
E121: Undefined variable: ret                                                                                                                                                      
Press ENTER or type command to continue                                                                                                                                            
Error detected while processing function 267:                                                                                                                                      
line   30:                                                                                                                                                                         
E116: Invalid arguments for function <SNR>49_popd                                                                                                                                  
Press ENTER or type command to continue                                                                                                                                            

@junegunn
Copy link
Owner

Never had that before. What's the :version? Please test again with minimal vim configuration; no other plugins.

@iclanzan
Copy link

iclanzan commented Feb 9, 2016

I am also getting a similar error:

Error detected while processing function 267:
line  30:
E121: Undefined variable: ret
Press ENTER or type command to continue

Running on Nvim 0.1.1.

@junegunn
Copy link
Owner

junegunn commented Feb 9, 2016

@iclanzan Please provide the steps to reproduce the problem.

@iclanzan
Copy link

Unfortunately I can’t seem to be able to reproduce it reliably. I don’t know what triggers the problem, but after it happens once it keeps happening as long as I try to open a file in the current buffer. If I instead open it in a split window it works.

@iclanzan
Copy link

I think I got it. The error is triggered when trying to open a file over an unsaved buffer.

@junegunn
Copy link
Owner

Okay, I noticed that the problem is reproducible on Neovim when hidden is unset. I can fix it to give a better error message.

junegunn added a commit to junegunn/fzf that referenced this issue Feb 12, 2016
@junegunn
Copy link
Owner

Should be fixed now. Thanks for the feedback.

@iclanzan
Copy link

Cool, thanks!

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