1 2 3 4
setlocal foldtext=getline(v:foldstart).printf('\ [%d\ lines]\ \ \ \',\ v:foldend-v:foldstart) setlocal foldmethod=syntax setlocal foldenable