Permalink
Browse files

Get rid of that "fold any preamble" thing since it folds the whole fi…

…le by default.
  • Loading branch information...
1 parent 20704d8 commit cd4ca88ddafeea5a7bb3cfa27c31142f20709113 Ben Williams committed Nov 15, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 after/ftplugin/mkd.vim
View
@@ -7,8 +7,8 @@
" original version from Steve Losh's gist: https://gist.github.com/1038710
func! Foldexpr_markdown(lnum)
- if (a:lnum == 0)
- let l0 = getline(a:lnum)
+ if (a:lnum == 1)
+ let l0 = ''
else
let l0 = getline(a:lnum-1)
endif
@@ -29,9 +29,6 @@ func! Foldexpr_markdown(lnum)
elseif l0 =~ '^#'
" current line starts with hashes
return '>'.matchend(l0, '^#\+')
- elseif a:lnum == 1
- " fold any 'preamble'
- return '>1'
else
" keep previous foldlevel
return '='

0 comments on commit cd4ca88

Please sign in to comment.