diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-28 21:52:02 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-28 21:52:02 -0300 |
commit | a3653e9be15357f2813543c5ff320327b6f04531 (patch) | |
tree | 289bd881e341768bd8dfa89f7e874ac8a3d22511 /vim.dot.link/ftplugin | |
parent | 520351e0b4aa06be5d72c89aec73e218fa2ea044 (diff) | |
download | vim-a3653e9be15357f2813543c5ff320327b6f04531.tar.gz vim-a3653e9be15357f2813543c5ff320327b6f04531.tar.bz2 |
Fix: workarounds for markdown filetype handling
Diffstat (limited to 'vim.dot.link/ftplugin')
-rw-r--r-- | vim.dot.link/ftplugin/markdown.vim | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/vim.dot.link/ftplugin/markdown.vim b/vim.dot.link/ftplugin/markdown.vim index 99d0ed3..366d9f2 100644 --- a/vim.dot.link/ftplugin/markdown.vim +++ b/vim.dot.link/ftplugin/markdown.vim @@ -1,20 +1,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 +" 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() -set autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2 -set expandtab formatoptions=tcroqn2 comments=n:> +"set foldexpr=NestedMarkdownFolds() +" }}} -" Markdown configuration with vim-markdown plugin +" 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 +" }}} |