1 " Vim filetype plugin file (GUI menu, folding and completion)
3 if exists("b:did_ftplugin")
8 " {{{1 Local settings (do on every load)
9 if !exists("g:debchangelog_fold_disable")
10 setlocal foldmethod=expr
12 setlocal foldexpr=DosiniFold(v:lnum)
17 let b:undo_ftplugin = "setlocal tw< comments< foldmethod< foldexpr< foldtext<"
20 if exists("g:did_dosini_ftplugin")
24 " Don't load another plugin (this is global)
25 let g:did_dosini_ftplugin = 1
29 function! DosiniFold(lnum)
30 let line = getline(a:lnum)
31 let prevl = getline(a:lnum - 1)
35 if line == '' && prevl == ''
44 " vim: set foldmethod=marker: