Improve the vim fold text, line content first
This commit is contained in:
parent
f946b60cc8
commit
772f24a95b
@ -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! <SID>StripWhitespace()
|
||||
let l = line(".")
|
||||
|
Loading…
x
Reference in New Issue
Block a user