diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-28 15:21:01 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-28 15:21:01 -0300 |
commit | a3103720f129bac2a60943d4e5e882144e5bd604 (patch) | |
tree | 04144ead383ac79717e20b167ee4425e11e8fbfc /vim.dot.link/filetype.vim | |
parent | fd271de3618194c264248e82c1441fd520e498fb (diff) | |
download | vim-a3103720f129bac2a60943d4e5e882144e5bd604.tar.gz vim-a3103720f129bac2a60943d4e5e882144e5bd604.tar.bz2 |
Feat: try preservim/vim-markdown
Diffstat (limited to 'vim.dot.link/filetype.vim')
-rw-r--r-- | vim.dot.link/filetype.vim | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/vim.dot.link/filetype.vim b/vim.dot.link/filetype.vim index 26e7eea..522d674 100644 --- a/vim.dot.link/filetype.vim +++ b/vim.dot.link/filetype.vim @@ -6,7 +6,7 @@ endif " Markdown augroup markdown - " Markdown configuration + " Markdown configuration without vim-markdown plugin " " Include folding setup: " https://github.com/masukomi/vim-markdown-folding @@ -16,9 +16,18 @@ augroup markdown " " Seem like this things should be set during BufRead or BufNewFile; they're " not working when set during the FileType event. + "autocmd! + "autocmd BufRead,BufNewFile *.md set filetype=markdown foldexpr=NestedMarkdownFolds() autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2 expandtab formatoptions=tcroqn2 comments=n:> + "autocmd BufRead,BufNewFile *.mdwn set filetype=ikiwiki foldexpr=NestedMarkdownFolds() + + " Markdown configuration with vim-markdown plugin autocmd! - autocmd BufRead,BufNewFile *.md set filetype=markdown foldexpr=NestedMarkdownFolds() autoindent smartindent tabstop=2 softtabstop=2 shiftwidth=2 expandtab formatoptions=tcroqn2 comments=n:> - autocmd BufRead,BufNewFile *.mdwn set filetype=ikiwiki foldexpr=NestedMarkdownFolds() + autocmd BufRead,BufNewFile *.md 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 augroup END " Python |