prettify debug output

This commit is contained in:
Marco Hinz 2013-04-02 15:35:52 +02:00
parent 7ef9ef97d9
commit c5683b1b3b

View File

@ -553,13 +553,16 @@ endfunction
" Functions -> SignifyDebugListActiveBuffers() {{{1 " Functions -> SignifyDebugListActiveBuffers() {{{1
function! SignifyDebugListActiveBuffers() abort function! SignifyDebugListActiveBuffers() abort
if len(s:sy) == 0 if empty(s:sy)
echo 'No active buffers!' echo 'No active buffers!'
return return
endif endif
for i in items(s:sy) for [path, stats] in items(s:sy)
echo i echo "\n". path ."\n". repeat('=', strlen(path))
for stat in sort(keys(stats))
echo printf("%20s = %s\n", stat, string(stats[stat]))
endfor
endfor endfor
endfunction endfunction