All,

I am trying to keep track of the number of buffers in the buffer list.

I'm doing this with the following code:
        autocmd BufAdd * let g:zbuflistcount += 1
        autocmd BufDelete * let g:zbuflistcount -= 1

The problem is I found this to be very unreliable in some circumstances,
and I'm not sure why.

The most obvious one is "vim *.cs" where multiple files would be opened;
however, the "BufAdd" autocmd wouldn't run enough times.

Any ideas? Thanks.

--Matt

Reply via email to