diff options
Diffstat (limited to 'vimrc-common')
-rw-r--r-- | vimrc-common | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vimrc-common b/vimrc-common index 7eb499f..21df101 100644 --- a/vimrc-common +++ b/vimrc-common | |||
@@ -160,7 +160,7 @@ set foldcolumn=2 | " I think I don't need this second indicator | |||
160 | " set foldmethod=syntax | " foldlevel: syntax, indent, manual / foldmethod=syntax makes Vim incredible slow | 160 | " set foldmethod=syntax | " foldlevel: syntax, indent, manual / foldmethod=syntax makes Vim incredible slow |
161 | set foldnestmax=1 | " top level folding only | 161 | set foldnestmax=1 | " top level folding only |
162 | set foldopen=block,hor,search | " when do we unfold? | 162 | set foldopen=block,hor,search | " when do we unfold? |
163 | set foldtext=printf('%*s%.*S',indent(v:foldstart),'',&textwidth-indent(v:foldstart),substitute(substitute(join(getline(v:foldstart,v:foldend),'\ '),'[[:space:]]\\+','\ ','g'),'^[[:space:]*]','','g')) | 163 | set foldtext=printf('%*s%.*S',indent(v:foldstart),'',&textwidth-indent(v:foldstart),substitute(substitute(join(getline(v:foldstart,v:foldend),'\ '),'[[:space:]*/]\\+','\ ','g'),'^[[:space:]*]','','g')) |
164 | 164 | ||
165 | " works ... | 165 | " works ... |
166 | " set foldexpr=match(synIDattr(synID(v:lnum,indent(v:lnum)+1,0),'name'),'Comment')>-1 | 166 | " set foldexpr=match(synIDattr(synID(v:lnum,indent(v:lnum)+1,0),'name'),'Comment')>-1 |