2013-09-30 04:19:31 -04:00
|
|
|
" vim: et sw=2 sts=2
|
|
|
|
|
2013-08-19 11:36:16 -04:00
|
|
|
scriptencoding utf-8
|
|
|
|
|
2013-07-17 06:30:58 -04:00
|
|
|
if exists('b:autoloaded_sy_debug')
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let b:autoloaded_sy_debug = 1
|
|
|
|
|
2013-07-19 16:33:23 -04:00
|
|
|
" Function: #list_active_buffers {{{1
|
2013-07-17 06:30:58 -04:00
|
|
|
function! sy#debug#list_active_buffers() abort
|
|
|
|
if empty(g:sy)
|
|
|
|
echomsg 'No active buffers!'
|
|
|
|
return
|
|
|
|
endif
|
|
|
|
|
|
|
|
for [path, stats] in items(g: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
|