Saturday, September 25, 2010

Re: Is this a bug with 'previewheight'?

On 25 September 2010 22:24, Benjamin R. Haskell <vim@benizi.com> wrote:
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 compiled with --with-x) my ~/.vimrc and ~/.vim dir.

I've encountered this issue when I've used the 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

No comments:

Post a Comment