# While this other repo fixes https://github.com/masukomi/vim-markdown-folding/pull/43
url = https://github.com/rafkaplon/vim-markdown-folding
[submodule "vim.dot.link/pack/masukomi/start/vim-markdown-folding"]
- path = vim.dot.link/pack/masukomi/start/vim-markdown-folding
+ path = vim.dot.link/pack/masukomi/opt/vim-markdown-folding
url = https://github.com/masukomi/vim-markdown-folding
[submodule "vim.dot.link/pack/vitalk/start/vim-simple-todo"]
path = vim.dot.link/pack/vitalk/start/vim-simple-todo
url = https://github.com/vitalk/vim-simple-todo
[submodule "vim.dot.link/pack/preservim/start/vim-markdown"]
- path = vim.dot.link/pack/preservim/opt/vim-markdown
+ path = vim.dot.link/pack/preservim/start/vim-markdown
url = https://github.com/preservim/vim-markdown
" won't be correctly applied in some Markdown files loaded in new windows.
augroup filetype_markdown
autocmd!
- autocmd BufRead,BufNewFile,BufEnter *.md set foldexpr=NestedMarkdownFolds()
- autocmd BufRead,BufNewFile,BufEnter *.md set autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2 expandtab formatoptions=tcroqn2 comments=n:>
+ "autocmd BufRead,BufNewFile,BufEnter *.md set foldexpr=NestedMarkdownFolds()
+ "autocmd BufRead,BufNewFile,BufEnter *.md set autoindent smartindent
+ "autocmd BufRead,BufNewFile,BufEnter *.md set formatoptions=tcroqn2 comments=n:>
+ autocmd BufRead,BufNewFile,BufEnter *.md set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
augroup END
" }}}
" 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:>
+"set autoindent smartindent
+"set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
+"set formatoptions=tcroqn2 comments=n:>
" }}}
" Markdown configuration without vim-markdown plugin {{{
" Include folding setup:
" https://github.com/masukomi/vim-markdown-folding
"
-" Alternative folding method:
+" This is an alternative to the following 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
+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
" }}}