Sunday, August 28, 2011

Re: storing variables in viminfo

Hi,

sinbad wrote:
>
> how to explicitly store variables in to viminfo file.
> i want to store a global variable "g:var" into a
> viminfo file, i read the help it says global vars
> are stored by default but this doesn't seem to be
> happening. how to store it explicitly.i want the
> contents of the global variable to be restored
> after vim is restarted. how do i do that.

from :help 'viminfo'

| ! 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. Nested List and Dict items may not be
| read back correctly, you end up with an empty item.

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)

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