From c5683b1b3b80cb164aad31941bccd6b69985e68f Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 2 Apr 2013 15:35:52 +0200 Subject: [PATCH] prettify debug output --- plugin/signify.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugin/signify.vim b/plugin/signify.vim index 3c421f6..3c0835b 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim @@ -553,13 +553,16 @@ endfunction " Functions -> SignifyDebugListActiveBuffers() {{{1 function! SignifyDebugListActiveBuffers() abort - if len(s:sy) == 0 + if empty(s:sy) echo 'No active buffers!' return endif - for i in items(s:sy) - echo i + for [path, stats] in items(s:sy) + echo "\n". path ."\n". repeat('=', strlen(path)) + for stat in sort(keys(stats)) + echo printf("%20s = %s\n", stat, string(stats[stat])) + endfor endfor endfunction