how to set omnifunc complete window height (with img)

18 views
Skip to first unread message

Zac Lee

unread,
Sep 28, 2010, 8:59:25 AM9/28/10
to vim...@googlegroups.com
how to set the scratch window height ?  it is 3 now, I want to set 1.
the script is phpcomplete: http://www.vim.org/scripts/script.php?script_id=3171
thanks
vim.jpg

thinca

unread,
Sep 28, 2010, 12:48:08 PM9/28/10
to vim_use
set previewheight=1

Benjamin R. Haskell

unread,
Sep 28, 2010, 12:51:26 PM9/28/10
to vim...@googlegroups.com
On Tue, 28 Sep 2010, Zac Lee wrote:

> how to set the scratch window height ?  it is 3 now, I want to set 1.
> the script is phpcomplete: http://www.vim.org/scripts/script.php?script_id=3171

Add:
set previewheight=1
to your ~/.vimrc or %HOME%\_vimrc

Or to:
~/.vim/after/syntax/php.vim or %HOME%\vimfiles\after\syntax.php
if you only want to change it for PHP completion.


Caveat: see recent discussion topic: "Is this a bug with
'previewheight'?". Perhaps some plugin(s) prevent(s) previewheight=1
from doing what it's supposed to. (worksforme)

--
Best,
Ben

Zac Lee

unread,
Sep 28, 2010, 9:32:04 PM9/28/10
to vim...@googlegroups.com
I have try, but it does not work.



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Benjamin R. Haskell

unread,
Sep 29, 2010, 10:53:08 AM9/29/10
to vim...@googlegroups.com
On Wed, 29 Sep 2010, Zac Lee wrote:

> On Wed, Sep 29, 2010 at 12:51 AM, Benjamin R. Haskell wrote:
>
>> On Tue, 28 Sep 2010, Zac Lee wrote:
>>
>>> how to set the scratch window height ? it is 3 now, I want to set 1.
>>> the script is phpcomplete:
>>> http://www.vim.org/scripts/script.php?script_id=3171
>>>
>>
>> Add:
>> set previewheight=1
>> to your ~/.vimrc or %HOME%\_vimrc
>>
>> Or to:
>> ~/.vim/after/syntax/php.vim or %HOME%\vimfiles\after\syntax.php
>> if you only want to change it for PHP completion.
>>
>>
>> Caveat: see recent discussion topic: "Is this a bug with
>> 'previewheight'?". Perhaps some plugin(s) prevent(s) previewheight=1
>> from doing what it's supposed to. (worksforme)
>

> I have try, but it does not work.
>

Sent patch to vim-dev. The preview window for popup-menu detailed info
was hardcoded to 3. After the patch, setting:

set previewheight=1

caused the info window to be 1 line high.

--
Best,
Ben

Zac Lee

unread,
Oct 5, 2010, 9:59:01 PM10/5/10
to vim...@googlegroups.com
could you send the patch to me? thanks



--
Best,
Ben

Christian Brabandt

unread,
Oct 6, 2010, 2:30:20 AM10/6/10
to vim...@googlegroups.com
Please don't top poste, fixing quotation.

On Wed, October 6, 2010 3:59 am, Zac Lee wrote:
[patch for height of preview window]


> could you send the patch to me? thanks

http://groups.google.com/group/vim_dev/msg/9c303a0e3c357f64

regards,
Christian


Reply all
Reply to author
Forward
0 new messages