diff options
Diffstat (limited to 'vim/init/config.vim')
-rw-r--r-- | vim/init/config.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/init/config.vim b/vim/init/config.vim index 74cbd39..4676942 100644 --- a/vim/init/config.vim +++ b/vim/init/config.vim | |||
@@ -188,11 +188,13 @@ augroup InitFileTypes | |||
188 | endif | 188 | endif |
189 | 189 | ||
190 | " Fold for heading and the following contents | 190 | " Fold for heading and the following contents |
191 | let hash_num = matchstr(getline(v:lnum), '^#\+') | 191 | let hash_num = matchstr(getline(v:lnum), '^\zs#\+\ze\s') |
192 | if !empty(hash_num) | 192 | if !empty(hash_num) |
193 | let foldlevel = g:markdown_apply_heading_level ? len(hash_num) - 1 : 1 | 193 | let foldlevel = g:markdown_apply_heading_level ? len(hash_num) - 1 : 1 |
194 | " HEADING | 194 | " HEADING |
195 | return len(hash_num) == 1 ? 0 : '>'.foldlevel | 195 | return len(hash_num) == 1 ? 0 : '>'.foldlevel |
196 | elseif match(getline(v:lnum), '^----') != -1 | ||
197 | return "<" | ||
196 | else | 198 | else |
197 | " Contents | 199 | " Contents |
198 | return "=" | 200 | return "=" |