diff --git a/plugin/functions.vim b/plugin/functions.vim index 5b92783..b420fef 100644 --- a/plugin/functions.vim +++ b/plugin/functions.vim @@ -1,3 +1,10 @@ +" Fold Text +set foldtext=FoldText() +function! FoldText() + let line = getline(v:foldstart) + return line.' '.string(v:foldend - v:foldstart).' line fold ' +endfunction + " Strip trailing whitespace function! StripWhitespace() let l = line(".")