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

Disable auto preview window. #21

Open
khmelevskii opened this issue Jun 10, 2013 · 10 comments
Open

Disable auto preview window. #21

khmelevskii opened this issue Jun 10, 2013 · 10 comments

Comments

@khmelevskii
Copy link

How can i disable auto prewiev window. Comman set completeopt-=preview not work in .vimrc

@marijnh
Copy link
Member

marijnh commented Jun 10, 2013

It seems that Tern's preview window is using custom code, and can not currently be disabled.

@clausreinke Do you want to add an option for this?

@clausreinke
Copy link
Contributor

Can you describe precisely what you are doing and seeing? If you have the preview window open, close it (:pc), then set completeopt-=preview, and completion will not open a preview window.

@marijnh the self-defined preview window is only used for documentation lookup.

@runcom
Copy link

runcom commented Aug 5, 2013

any update on this? 👍

@miickel
Copy link

miickel commented Oct 21, 2013

This seems to get the job done for me at least.

autocmd BufEnter * set completeopt-=preview

@ShirajG
Copy link

ShirajG commented Dec 23, 2014

Any way to get the documentation window to only show up while you're looking through the list of suggestions? That would make this a pretty useful feature. Right now it just opens up the related documentation and then never goes away unless I manually do :pc

@mitermayer
Copy link

+1, I like @ShirajG suggestion

@t-mdo
Copy link

t-mdo commented Aug 8, 2015

+1 @ShirajG.

@lvarayut
Copy link

lvarayut commented Jan 9, 2016

I was very frustrated to manually close the preview window. Now, I have set set completeopt-=preview and it works perfectly. However, the documentation opened in preview window is sometimes useful, I totally agree with @ShirajGs' idea.

@marijnh
Copy link
Member

marijnh commented Jan 12, 2016

I'm not going to do this, since I don't understand the vim conventions involved well enough. But a patch would definitely be welcome.

@jonsmithers
Copy link

I found a stackoverflow answer!

autocmd CompleteDone * pclose

This will automatically hide the preview window whenever you're done auto-completing.

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

10 participants