From a32264fcd83a58f9c062e0e5bf56c360d1113992 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 17 Jul 2016 23:33:12 +0100 Subject: [PATCH] Improve the vim fold text, line content first --- plugin/functions.vim | 7 +++++++ 1 file changed, 7 insertions(+) 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(".")