On 2009-03-28, John Beckett wrote:
> Ivan Van Laningham wrote:
> > let mylines="$VIM_LINES"+0
> > let mycolumns="$VIM_COLUMNS"+0
> > set lines=mylines
> > set columns=mycolumns
>
> I think we are assuming that you have defined an environment variable
> VIM_LINES (and VIM_COLUMNS) which you could see in Vim with command:
>
> :echo $VIM_LINES
>
> The "set" command takes text, so you need to build the command line:
>
> " The '+0' is only needed if you need 'mylines' as a number.
> :let mylines=$VIM_LINES+0
> :execute 'set lines='.mylines
You could also use let.
let &lines = $VIM_LINES
let &columns = $VIM_COLUMNS
See
:help let-&
Regards,
Gary
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---