On Fri, January 22, 2010 3:12 am, John Magolske wrote: > count. Searching around some more, I found this solution [1]: > > set rulerformat=%22(%{g:zbuflistcount};%M%n\ %=%l,%c%V\ %P%) > autocmd BufAdd * let g:zbuflistcount += 1 > autocmd BufDelete * let g:zbuflistcount -= 1 > autocmd VimEnter * call UpdateZBufLC() > function UpdateZBufLC() > let lst = range(1, bufnr('$')) > call filter(lst, 'buflisted(v:val)') > let g:zbuflistcount = len(lst) > endfunction > > Which seems to work fine. I decided against using the fractional count > & just put the total number in the statusline. I find it pretty handy > to be able to tell at a glance how many relevant buffers are open, > then use one of the many available tools [2] for navigating between > them (bufferlist.vim ended up working best for my needs).
hm, that should be equivalent to :set stl={len(filter(range(1,bufnr('$')),'buflisted(v:val)'))} so no need for autocommands. regards, Christian -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php