X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/67b59d559bafc505b0a75425a50149b6025566fc..642730fccce7e78c995389f3c430747d266efa96:/indent/markdown.vim diff --git a/indent/markdown.vim b/indent/markdown.vim index fb8d95d..23944f2 100755 --- a/indent/markdown.vim +++ b/indent/markdown.vim @@ -5,6 +5,16 @@ setlocal indentexpr=GetMarkdownIndent() setlocal nolisp setlocal autoindent +" Automatically insert bullets +setlocal formatoptions+=r +" Do not automatically insert bullets when auto-wrapping with text-width +setlocal formatoptions-=c +" Accept various markers as bullets +setlocal comments=b:*,b:+,b:- + +" Automatically continue blockquote on line break +setlocal comments+=b:> + " Only define the function once if exists("*GetMarkdownIndent") | finish | endif