> On Sun 12-Nov-06 7:54pm -0600, [EMAIL PROTECTED] wrote:
>
>> Well I'm reporting the above "g:zbuflistcount" in my 'rulerformat'.
>
> Don't you think you should have mentioned that?
>
>> I really don't think I can afford the baggage of calling your function
>> from within my 'rulerformat'.
>
> No, for 100 buffers, my function would take nearly 4 ms on
> a 800 Mhz PC.  You could upgrade the function to capture,
> for example, the number of existing, loaded, listed and
> wiped buffers.  Then write is simple map to give yourself a
> little report whenever you want it.

Since the ruler is updated very frequently (for example in insert mode
every keypress I take)... I prefer not to have even a "fast function" in
my 'rulerformat'. Did you get 4ms from tests?

Your first comment about how the autocmds cause baggage is ridiculous. I
don't care so much about "let var += 1" running every half an hour when a
new buffer is created.

>
> Or your map could also set a global variable to update your
> ruler or statusline.

That's true, but it would be unprofessional to have a constantly outdated
variable appear on the ruler/statusline.

I'm rather looking into trying to write a patch if people would confirm
that these are actual bugs (with the BufAdd/BufDelete autocmds).

>
> --
> Best regards,
> Bill
>
>

--Matt

Reply via email to