05/12/17 14:13:45 KLW3aiiz0
>>293
function! ChaliceFilter(pat)
setlocal foldexpr=getline(v:lnum)=~'^-'?'>1':'='
setlocal foldmethod=expr
setlocal foldtext=getline(v:foldstart+1)
%foldclose
execute 'g/' . a:pat . '/silent! foldopen'
endfunction
:call ChaliceFilter('keyword')