Viminfo dictionaries

2007-04-29 Thread Thomas

Hi,

Part two in this week's installment of unsolicited comment on vimscript:

I also realized that viminfo doesn't save upper case letter variables
the values of which are dictionaries. This can be solved by using
VimEnter  VimLeavePre autocommands and by converting the variable to 
from strings. If this is intended to be so, I think this should be noted
in the help -- AFAIK it currently isn't.

Regards,
Thomas.






Re: Viminfo dictionaries

2007-04-29 Thread Bram Moolenaar

Thomas wrote:

 Part two in this week's installment of unsolicited comment on vimscript:
 
 I also realized that viminfo doesn't save upper case letter variables
 the values of which are dictionaries. This can be solved by using
 VimEnter  VimLeavePre autocommands and by converting the variable to 
 from strings. If this is intended to be so, I think this should be noted
 in the help -- AFAIK it currently isn't.

It's documented at :help 'viminfo':

CHARVALUE   ~
!   When included, save and restore global variables that start
with an uppercase letter, and don't contain a lowercase
letter.  Thus KEEPTHIS and K_L_M are stored, but KeepThis
and _K_L_M are not.  Only String and Number types are
stored.


-- 
So this is it, said Arthur, we are going to die.
Yes, said Ford, except...no!  Wait a minute!  He suddenly lunged across
the chamber at something behind Arthur's line of vision.  What's this
switch? he cried.
What?   Where? cried Arthur, twisting around.
No, I was only fooling, said Ford, we are going to die after all.
-- Douglas Adams, The Hitchhiker's Guide to the Galaxy

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///