tern_for_vim icon indicating copy to clipboard operation
tern_for_vim copied to clipboard

Disable auto preview window.

Open khmelevskii opened this issue 12 years ago • 10 comments

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

khmelevskii avatar Jun 10 '13 14:06 khmelevskii

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?

marijnh avatar Jun 10 '13 15:06 marijnh

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.

clausreinke avatar Jun 10 '13 15:06 clausreinke

any update on this? :+1:

runcom avatar Aug 05 '13 09:08 runcom

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

autocmd BufEnter * set completeopt-=preview

miickel avatar Oct 21 '13 13:10 miickel

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

ShirajG avatar Dec 23 '14 07:12 ShirajG

+1, I like @ShirajG suggestion

mitermayer avatar Jan 02 '15 13:01 mitermayer

+1 @ShirajG.

t-mdo avatar Aug 08 '15 17:08 t-mdo

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.

lvarayut avatar Jan 09 '16 04:01 lvarayut

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.

marijnh avatar Jan 12 '16 15:01 marijnh

I found a stackoverflow answer!

autocmd CompleteDone * pclose

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

jonsmithers avatar Aug 12 '16 14:08 jonsmithers