aboutsummaryrefslogtreecommitdiff
path: root/vimrc-common
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc-common')
-rw-r--r--vimrc-common2
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
161set foldnestmax=1 | " top level folding only 161set foldnestmax=1 | " top level folding only
162set foldopen=block,hor,search | " when do we unfold? 162set foldopen=block,hor,search | " when do we unfold?
163set foldtext=printf('%*s%.*S',indent(v:foldstart),'',&textwidth-indent(v:foldstart),substitute(substitute(join(getline(v:foldstart,v:foldend),'\ '),'[[:space:]]\\+','\ ','g'),'^[[:space:]*]','','g')) 163set 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
..