Wednesday, February 23, 2011

Re: Where g:, b:, t: and w: variables are described?

On 02/23/2011 04:14 PM, ZyX wrote:
> I recently found that there exists `g:' (without any text after `:') variable
> which is a dictionary that holds all other global variables, same for `b:', `t:'
> and `w:' variables. Can anybody point me in which help topic they are described?

You can read about them at

:help g:

(there are actually a bunch of them in that same area, and

:help internal-variables

drops you a little before the section)

> By the way, the following hack works:
> let g:["000"]="test"
> echo g:000

Also documented in the aforementioned help:

"""
The scope name by itself can be used as a |Dictionary|. For
example, to delete all script-local variables
"""

-tim


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