はい、foldtext
romainlがすでに述べた関数は、閉じた折り畳みで表示される文字列を返します(つまり、それは-あなたが見ているものです)。
fold関数を変更して、興味のあるものをすべて表示できます。例えば、
function! MyFoldText() " {{{
let line = getline(v:foldstart)
let nucolwidth = &fdc + &number * &numberwidth
let windowwidth = winwidth(0) - nucolwidth - 3
let foldedlinecount = v:foldend - v:foldstart
" expand tabs into spaces
let onetab = strpart(' ', 0, &tabstop)
let line = substitute(line, '\t', onetab, 'g')
let line = strpart(line, 0, windowwidth - 2 -len(foldedlinecount))
let fillcharcount = windowwidth - len(line) - len(foldedlinecount)
return line . '…' . repeat(" ",fillcharcount) . foldedlinecount . '…' . ' '
endfunction " }}}
set foldtext=MyFoldText()
これに似たものを返します
" Basic settings --------------------------------------------- {{{... 6 ...
6行が折り畳まれていることを意味します(折り畳みマーカーが閉じているものを含む)