> :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"
>
>
[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
> 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.
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
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