Existing piece of folding code:
set fdm=expr
set foldexpr=Myindent(v:lnum)
func! Myindent(lnum)
let s:a=strlen(matchstr(getline(v:lnum), '^\*\+\s\+\|^\d\(\.\d\)\=\s\+'))
if s:a == 4
return '>2'
elseif s:a == 2
return '>1'
else
return '='
endif
endf
Text before folding:
Existing folding effects:
My needs: