On Mon, Feb 09, 2009 at 11:11:11AM -0800, Larson, DavidX S wrote:
> > > On 2009-02-09, Matt Wozniski wrote:
> > >
> > >> There's no easy way to get all options, afaik.
> > >
> > >    :set all
> >
> > I meant from vimscript.  Sure, between  :set all  and  :set termcap
> > you can get a list of all the options, and with :redir you can get
> > that into a string, but parsing that string would be incredibly
> > difficult without knowing all of the option names ahead of time - and,
> > if you knew that, you could just query them each directly.
> 
> > ~Matt
> 
> How about something like this? (tested) :)

Error detected while processing function GetAllSettings:
line 26:
E684: list index out of range: 1
E15: Invalid expression: list[1]
E684: list index out of range: 1
E15: Invalid expression: list[1]
E684: list index out of range: 1
E15: Invalid expression: list[1]

As well as odd output like:
all[noallowrevins] = 0      nomodified          nosplitright

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <james...@jamessan.com>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui