[Vimperator] un[let]
Виктор
Виктор
Tue Sep 18 13:29:46 PDT 2007
В вт, 2007-09-18 в 21:53 +0200, Martin Stubenschrott написа:
> On Tue, Sep 18, 2007 at 10:12:08PM +0300, Виктор Кожухаров wrote:
> > > - Options have a value property so you don't need to call getter() explicitly
> > I was looking for something like that, but the only thing I could find
> > was getter(). So .value would be equivalent to .getter() then?
>
> usually just alert(vimperator.options["complete"]) will work, it has
> internal get/set helpers.
I considered that, but I wasn't sure whether it could handle shorthand
option names (I tested it and I think the answer was a no here).
>
> > > - variableReference() should probably be a 'private' helper...at least for now.
> > unless I'm mistaken here, this would mean that variableReference would
> > only be accessible from methods of the vimperator object. However, this
> > is also used for the commands, so I don't see how to make it private.
>
> I still don't get it, what is/will be eval used for and what variableReference?
> Maybe variableReference could/should be named vimperator.getVariable?
for now eval is used to evaluate a simple expression. currently, it can
eval strings ("fofo", 'bar', "foo\"aaa\"", etc), numbers (1,2, etc),
variables (foobar, g:foobar), and options (&guioptions). It is mainly
used by let to evaluate the right hand side of the assignment. But it
can (and I'm planning on doing this soon) be used with the 'echo'
command, for a more vim-ish echo, other vim commands most likely use it
too.
variableReference obtains a reference (pointer) for a variable. imho it
shouldn't be called getVariable, since it gets a reference to it. This
allows for the modification of the variable, as well as obtaining it's
value.
>
> > So I guess I can commit it then, and everyone can look at it.
>
> Yep, we are all waiting for mapleader support :)
>
Already committed. It should be rather trivial now to replace the
<Leader> string in a lhs map assignment with the string contained within
mapleader (or '/' if mapleader hans't been defined yet).
> --
> Martin
> _______________________________________________
> Vimperator mailing list
> Vimperator at mozdev.org
> http://www.mozdev.org/mailman/listinfo/vimperator
--
Виктор Кожухаров /Viktor Kojouharov/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: =?UTF-8?Q?=D0=A2=D0=BE=D0=B2=D0=B0?= =?UTF-8?Q?_=D0=B5?=
=?UTF-8?Q?_=D1=86=D0=B8=D1=84=D1=80=D0=BE=D0=B2=D0=BE?=
=?UTF-8?Q?_=D0=BF=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B0?=
=?UTF-8?Q?_=D1=87=D0=B0=D1=81=D1=82?= =?UTF-8?Q?_=D0=BE=D1=82?=
=?UTF-8?Q?_=D0=BF=D0=B8=D1=81=D0=BC=D0=BE=D1=82=D0=BE?=
Url : http://www.mozdev.org/pipermail/vimperator/attachments/20070918/b5509add/attachment.bin
More information about the Vimperator
mailing list