59606Re: When do buffer variables become undefined?
- Jun 2 5:59 AMQuoting "A. J. Mechelynck" <antoine.mechelynck@...>:
> Eric Arnold wrote:...
> > As I understand it, buffer variables are local and persistent to each Vim
> > buffer in which the script is executed, so once defined, they should be
> > valid until the buffer is unloaded/deleted/wiped.
>May I suggest that you check into Decho.vim --
> The above omits the part where b:restore_cmdheight is created; we see
> s:Init_buffer_variables() called from s:Restore_origin_window() but we
> don't see where s:Restore_origin_window() is called.
> See ":help debug-scripts" about finding out what happens within Vim,
> what is executed by sourced scripts, etc.
You'll need to instrument your code (ie. insert calls to Dfunc(), Decho(),
and Dret()), but then you'll get an activity trace.
- << Previous post in topic Next post in topic >>