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
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
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
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
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
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
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
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
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
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
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.
11 matches
Mail list logo