Re: [feature request] list all variables defined by `let`

2014-07-09 Fir de Conversatie Brook Hong
On Tuesday, July 8, 2014 7:38:05 PM UTC+8, Barry Arthur wrote: The same trick works for the other 'namespaces' too: echo g: echo t: echo w: echo b: echo s: Awesome, thanks. -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text you

[feature request] list all variables defined by `let`

2014-07-08 Fir de Conversatie Brook Hong
It will be useful, if there is a function to get a list of all variables with specific type. For example, let g:foo='foo' let g:bar='bar' call listvars('g') // return ['foo', 'bar'] -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text

Re: [feature request] list all variables defined by `let`

2014-07-08 Fir de Conversatie glts
On Tuesday, 8 July 2014 08:43:00 UTC+2, Brook Hong wrote: It will be useful, if there is a function to get a list of all variables with specific type. For example, let g:foo='foo' let g:bar='bar' call listvars('g') // return ['foo', 'bar'] You can already obtain the list

Re: [feature request] list all variables defined by `let`

2014-07-08 Fir de Conversatie itchyny
On Tuesday, July 8, 2014 3:43:00 PM UTC+9, Brook Hong wrote: It will be useful, if there is a function to get a list of all variables with specific type. For example, let g:foo='foo' let g:bar='bar' call listvars('g') // return ['foo', 'bar'] Try :echo keys(g:). -- -- You

Re: [feature request] list all variables defined by `let`

2014-07-08 Fir de Conversatie Barry Arthur
The same trick works for the other 'namespaces' too: echo g: echo t: echo w: echo b: echo s: -- -- You received this message from the vim_dev 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 --- You

Re: [feature request] list all variables defined by `let`

2014-07-08 Fir de Conversatie Barry Arthur
The same trick works for the other 'namespaces' too: echo g: echo t: echo w: echo b: echo s: -- -- You received this message from the vim_dev 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 --- You

Re: [patch] fixed memory leak in :rviminfo! when reading dict or list global variables

2012-03-18 Fir de Conversatie Bram Moolenaar
Dominique Pelle wrote: Using Vim-7.3.475, I can reproduce a memory leak using the ':rv!' command when reading dictionary or list global variables i.e. with 'viminfo' containing ! (:help viminfo-!). Steps to reproduce: $ cat leak.vim EOF set nocp set viminfo+=! let FOO=[] let BAR

[patch] fixed memory leak in :rviminfo! when reading dict or list global variables

2012-03-17 Fir de Conversatie Dominique Pellé
Hi Using Vim-7.3.475, I can reproduce a memory leak using the ':rv!' command when reading dictionary or list global variables i.e. with 'viminfo' containing ! (:help viminfo-!). Steps to reproduce: $ cat leak.vim EOF set nocp set viminfo+=! let FOO=[] let BAR={'bar':1} wv! /tmp/foobar rv

Re: List of $VARIABLEs

2009-12-06 Fir de Conversatie Tony Mechelynck
On 21/11/09 20:15, Mark Manning wrote: I was wondering if there is a list anywhere on all of the $VARIABLES which VIM has. For instance, if you do a help on $VIM (i.e.: :h $VIM) you get information on the $VIM variable. But if you do the same for $OS you get an error. However, if you do

List of $VARIABLEs

2009-11-21 Fir de Conversatie Mark Manning
I was wondering if there is a list anywhere on all of the $VARIABLES which VIM has. For instance, if you do a help on $VIM (i.e.: :h $VIM) you get information on the $VIM variable. But if you do the same for $OS you get an error. However, if you do :echo $OS Vim comes back with what

Re: List of $VARIABLEs

2009-11-21 Fir de Conversatie Lech Lorens
On 21-Nov-2009 Mark Manning mar...@sim1.us wrote: I was wondering if there is a list anywhere on all of the $VARIABLES which VIM has. For instance, if you do a help on $VIM (i.e.: :h $VIM) you get information on the $VIM variable. But if you do the same for $OS you get an error.