X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/63aabf4b47fc944afc210b974574d158eb7a08d0..31880b5251ce9153527b7dff9bf1fde6bd840402:/indent/markdown.vim?ds=inline 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)