You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I hacked together a simple fold config for easier reading. It hides .line...
I was thinking you might have some use for it for this plugin
function!SkipLineFoldExpr(lnum)
let nextline =trim(getline(a:lnum+1))
let curline =trim(getline(a:lnum))
" fold begins at {$ or one line before }$if curline[0:4] =='.line'|| (curline ==''&& nextline[0:4] =='.line')
"if curline[0:4] == '.line' || nextline[0:4] == '.line'return1endif" fold ends one line after {$ or at }$if curline[0:4] !='.line'return0endifreturn0endfunctionfunction!SkipLineFoldText()
" fold text matches non-empty line"return getline(v:foldstart)return''endfunction" customize how fold is definedsetfoldexpr=SkipLineFoldExpr(v:lnum)
" customize how fold looks likesetfoldtext=SkipLineFoldText()
" use 'foldexpr'setfoldmethod=exprsetfoldenablesetfoldclose=allsetfoldopen=allsetfoldlevel=0setfillchars=fold:\ highlightclearFolded
The text was updated successfully, but these errors were encountered:
Hello,
I hacked together a simple fold config for easier reading. It hides
.line
...I was thinking you might have some use for it for this plugin
The text was updated successfully, but these errors were encountered: