gitmodules: Set foldmethod=expr per modeline
Fold away every submodule entry. Add section headers.
This commit is contained in:
3
.config/vim/ftplugin/gitconfig.vim
Normal file
3
.config/vim/ftplugin/gitconfig.vim
Normal 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'
|
||||
Reference in New Issue
Block a user