Improve the vim fold text, line content first
This commit is contained in:
parent
8eb08c17a6
commit
a32264fcd8
@ -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(".")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user