Saturday, December 19, 2009

Re: automatic lines setting?

On Dec 19, 2:14 pm, Mathieu <lingfe...@yahoo.com> wrote:
>
> $ head .gvimrc
> set lines=500  " over zelous numbers of lines
> let &lines = ((float2nr(0.85*&lines)>52)?float2nr(0.85*&lines):52)

> ...If I issue the first two commands by hand after
> gvim has open. It will do what I want it to do.  Why don't it work as
> part of .gvimrc?

There is an implicit redraw between them when "issue" them by hand.
If I do

:set lines=500|echomsg &lines

I get 500 in the message history, but with

:set lines=500|redraw|echomsg &lines

I get 87.

You could try putting a redraw in your .gvimrc, after the set
lines=500.

Regards, John

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: