RE: Two minor requests for the TODO list

2006-12-07 Thread Eggum, DavidX S
> :let {var} ?= {expr}This is a conditional variable assignment operator, > it only has an effect if the variable is not yet > defined. This statement: > > let foo ?= "bar" > >

RE: Two minor requests for the TODO list

2006-12-07 Thread Halim, Salman
[mailto:[EMAIL PROTECTED] > Sent: Thursday, December 07, 2006 1:22 PM > To: vim developers list > Subject: RE: Two minor requests for the TODO list > > > > How about adding this: > > get({string} [, {default}]) > >     Get value from

RE: Two minor requests for the TODO list

2006-12-07 Thread Eggum, DavidX S
> How about adding this: > get({string} [, {default}]) >     Get value from variable {string}.  When this > variable does not >     exist, return {default}.  Return zero when > {default} is >     omitted. Hmmm.

Re: Two minor requests for the TODO list

2006-12-06 Thread Luc Hermitte
Hello, * On Wed, Dec 06, 2006 at 04:11:24PM -0800, Eggum, DavidX S <[EMAIL PROTECTED]> wrote: > I've found two tasks that are done in vim scripts routinely and it > would be nice to streamline them: > > Here's the first one: "If some variable isn't set yet, then set it to > a default value". Th

Two minor requests for the TODO list

2006-12-06 Thread Eggum, DavidX S
Hello All, I've found two tasks that are done in vim scripts routinely and it would be nice to streamline them: Here's the first one: "If some variable isn't set yet, then set it to a default value". The code always looks something like this: if !exists("g:MyScriptSetting")    let g:MyScriptSe