On 25 September 2010 22:24, Benjamin R. Haskell <[email protected]> wrote:

> On Sat, 25 Sep 2010, Daniel Vim wrote:
>
>
>> http://stackoverflow.com/questions/3712725/can-i-change-vim-completion-preview-window-height/3787326#3787326
>>
>>
> Can you provide more context?  :help mentions that 'previewheight' is just
> the default value.  If there's an existing preview window, it will be
> reüsed, and its height won't be altered.
>
> Using the example from :help :pedit:
>
> " opens a preview window of height 12 (default)
> :ped +/fputc /usr/include/stdio.h
>
> " move to preview window, delete its buffer
> <C-w>k :bd
>
> " change the default
> :set previewheight=50
>
> " opens a preview window of height 50
> :ped +/fputc /usr/include/stdio.h
>
>
> Perhaps Eclimd sets up some autocmds that explicitly set the window height?
>
> --
> Best,
> Ben
>
> --
> 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
>

The preview windows height in the example you gave are also 4 lines. (When I
disable the work-around of course...).


I am using vim 7.3 (downloaded from
here<ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2>compiled with
--with-x) my
~/.vimrc<http://github.com/theosp/osp-dist/tree/master/sys-root/home/theosp/.vimrc>and
~/.vim<http://github.com/theosp/osp-dist/tree/master/sys-root/home/theosp/.vim>dir.

I've encountered this issue when I've used the
fugitive<http://github.com/tpope/vim-fugitive>plugin (a plugin for
git).

The plugin adds the command :Gstatus that opens a preview window.

The thing is that in my vim that preview window height was only 4 lines,
even after I've explicitly set previewheight=50 in my .vimrc .
So each time I had to resize it by hand (Ctrl-w 20+)

So to workaround this (annoying unproductive) problem - I did what I've
posted to SO (I am theosp) .

Thanks

Daniel C. <http://www.blogy.me>
Skype: theosp333222
Phone: +972 54-8836191

-- 
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

Reply via email to