X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/5cd2223d4eec545745f729142197e839135cce94..e5af33f813cf0f26e7a125eb734c5f4a9597306e:/indent/mkd.vim?ds=sidebyside diff --git a/indent/mkd.vim b/indent/mkd.vim index a26ac0e..68e385a 100755 --- a/indent/mkd.vim +++ b/indent/mkd.vim @@ -3,14 +3,14 @@ let b:did_indent = 1 setlocal indentexpr=GetMkdIndent() setlocal nolisp -setlocal nosmartindent setlocal autoindent " Only define the function once if exists("*GetMkdIndent") | finish | endif function! s:is_li_start(line) - return a:line =~ '^\s*[\*+-]' + return a:line !~ '^ *\([*-]\)\%( *\1\)\{2}\%( \|\1\)*$' && + \ a:line =~ '^\s*[*+-] \+' endfunction function! s:is_blank_line(line)