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-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
|
2013-11-22 13:55:04 -05:00
|
|
|
for b in range(1, bufnr('$'))
|
2013-11-22 10:14:28 -05:00
|
|
|
if !buflisted(b) || empty(getbufvar(b, 'sy'))
|
2013-11-21 20:57:43 -05:00
|
|
|
continue
|
|
|
|
endif
|
2013-07-17 06:30:58 -04:00
|
|
|
|
2013-11-22 08:05:18 -05:00
|
|
|
let sy = copy(getbufvar(b, 'sy'))
|
2013-11-21 20:57:43 -05:00
|
|
|
let path = remove(sy, 'path')
|
2013-11-22 08:05:18 -05:00
|
|
|
|
2013-07-17 06:30:58 -04:00
|
|
|
echo "\n". path ."\n". repeat('=', strlen(path))
|
2013-11-21 20:57:43 -05:00
|
|
|
for stat in sort(keys(sy))
|
|
|
|
echo printf("%20s = %s\n", stat, string(sy[stat]))
|
2013-07-17 06:30:58 -04:00
|
|
|
endfor
|
|
|
|
endfor
|
|
|
|
endfunction
|