[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re: script lifetime?
From:       "Antoine J. Mechelynck" <antoine.mechelynck () belgacom ! net>
Date:       2005-02-17 14:16:22
Message-ID: 4214A736.6070601 () belgacom ! net
[Download RAW message or body]

ying shi wrote:
> Hi,
> 
> I want to know that is a script always alive once it is sourced? Would
> s:vars defined in it be deleted for some occasions?
> 
> 
> 
Sourcing a script is equivalent to executing its commands in sequence. 
Variables in it are defined or modified by ":let" and undefined by 
":unlet". Script-local variables cannot be touched by anything outside 
the script; but a function or command defined in the script (and which 
could be called later from outside) might conceivably unlet them.

Best regards,
Tony.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic