aboutsummaryrefslogtreecommitdiff
path: root/vim.dot.link/ftplugin/markdown.vim
blob: 366d9f2a49659d8e11ffddc001cb4a56fb948dda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
" Markdown configuration
"
" This filetype script is currently disable, as it may be conflicting with
" something else.
"
" Markdown folding through NestedMarkdownFolds() are not correctly working
" with this configuration.
"
" These settings are configured directly on filetype.vim instead.

" Basic {{{
"set autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2
"set expandtab formatoptions=tcroqn2 comments=n:>
" }}}

" Markdown configuration without vim-markdown plugin {{{
"
" Include folding setup:
" https://github.com/masukomi/vim-markdown-folding
"
" Alternative folding method:
" https://codereview.stackexchange.com/questions/202620/vim-plugin-for-folding-markdown-lists
"set foldexpr=NestedMarkdownFolds()
" }}}

" Markdown configuration with vim-markdown plugin {{{
"set autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2 expandtab formatoptions=tcroqn2 comments=n:>
"let g:vim_markdown_new_list_item_indent = 2
"let g:vim_markdown_folding_style_pythonic = 1
"let g:vim_markdown_folding_level = 1
"let g:vim_markdown_auto_insert_bullets = 0
"let g:vim_markdown_new_list_item_indent = 0
" }}}