Improve the vim fold text, line content first

This commit is contained in:
Kenneth Benzie 2016-07-17 23:33:12 +01:00
parent 8eb08c17a6
commit a32264fcd8

View File

@ -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 " Strip trailing whitespace
function! <SID>StripWhitespace() function! <SID>StripWhitespace()
let l = line(".") let l = line(".")