X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/824e85c3e7b40466c2a375e37c7e81a0584c7a79..31880b5251ce9153527b7dff9bf1fde6bd840402:/indent/markdown.vim diff --git a/indent/markdown.vim b/indent/markdown.vim index e21f287..b38a37c 100755 --- a/indent/markdown.vim +++ b/indent/markdown.vim @@ -41,6 +41,9 @@ function! s:prevnonblank(lnum) endfunction function GetMarkdownIndent() + if v:lnum > 2 && s:is_blank_line(getline(v:lnum - 1)) && s:is_blank_line(getline(v:lnum - 2)) + return 0 + endif let list_ind = 4 " Find a non-blank line above the current line. let lnum = prevnonblank(v:lnum - 1)