Files
dotfiles/.config/vim/ftplugin/gitconfig.vim
Julian Prein 846d0fc6c6 gitmodules: Set foldmethod=expr per modeline
Fold away every submodule entry.

Add section headers.
2022-06-23 23:58:42 +02:00

4 lines
212 B
VimL

" 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'