Sorry; it's located here:
http://vim.sourceforge.net/scripts/script.php?script_id=353 

> -----Original Message-----
> From: Halim, Salman 
> Sent: Wednesday, April 25, 2007 10:28 AM
> To: 'Marc Weber'; vim-dev@vim.org
> Subject: RE: wish: allow a: in the function def
> 
> I uploaded GetVar a long long time ago to vim.sf.net 
> (initially in 2002, updated for Vim 7 in 2006) that basically 
> is called with the name of a variable and an optional default 
> value.  It checks w:, b:, t:, and finally g: before returning 
> the specified default value (default default value is -1).
> 
> There is also a VarExists function in there that just returns 
> true/false (1/0) based on whether it was able to find any of those.
> 
> I use these to override global plugin settings on a 
> per-buffer basis, among other things.
> 
> Salman.

Reply via email to