vim-signify/autoload/sy/debug.vim
2013-11-22 13:48:49 +01:00

20 lines
485 B
VimL

" vim: et sw=2 sts=2
scriptencoding utf-8
" Function: #list_active_buffers {{{1
function! sy#debug#list_active_buffers() abort
for b in range(bufnr('$'))
if !buflisted(b) || empty(getbufvar(b, 'sy', {}))
continue
endif
let sy = copy(getbufvar(b, 'sy'))
let path = remove(sy, 'path')
echo "\n". path ."\n". repeat('=', strlen(path))
for stat in sort(keys(sy))
echo printf("%20s = %s\n", stat, string(sy[stat]))
endfor
endfor
endfunction