Simplify fold text

This commit is contained in:
Kenneth Benzie 2016-12-24 13:16:51 +00:00
parent 80f6215530
commit 41aa424a57

View File

@ -2,7 +2,7 @@
set foldtext=FoldText() set foldtext=FoldText()
function! FoldText() function! FoldText()
let line = getline(v:foldstart) let line = getline(v:foldstart)
return line.' '.string(v:foldend - v:foldstart).' line fold ' return line.' '.string(v:foldend - v:foldstart + 1).' lines '
endfunction endfunction
" Strip trailing whitespace " Strip trailing whitespace