gitmodules: Set foldmethod=expr per modeline

Fold away every submodule entry.

Add section headers.
This commit is contained in:
2022-04-24 13:45:09 +02:00
parent 464d4de64b
commit 846d0fc6c6
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
" Create folds for all lines between a section start and either the next section
" start or blank line
setlocal foldexpr=getline(v:lnum)=~'^\\['?'>1':getline(v:lnum+1)=~'(^\\[\\|^$)'?'<1':getline(v:lnum)=~'^\\t'