X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/824e85c3e7b40466c2a375e37c7e81a0584c7a79..edffbe1c16e39301b91972037ecc6f0b1359d311:/indent/markdown.vim?ds=sidebyside 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)