summaryrefslogtreecommitdiffstats
path: root/indent/markdown.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/markdown.vim')
-rw-r--r--indent/markdown.vim16
1 files changed, 8 insertions, 8 deletions
diff --git a/indent/markdown.vim b/indent/markdown.vim
index fa2b460d..7ae42024 100644
--- a/indent/markdown.vim
+++ b/indent/markdown.vim
@@ -7,15 +7,15 @@ 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:>
+setlocal formatoptions+=r
+setlocal comments=b:>
+if get(g:, "vim_markdown_auto_insert_bullets", 1)
+ " Do not automatically insert bullets when auto-wrapping with text-width
+ setlocal formatoptions-=c
+ " Accept various markers as bullets
+ setlocal comments+=b:*,b:+,b:-
+endif
" Only define the function once
if exists("*GetMarkdownIndent") | finish | endif