aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-28 16:44:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-28 16:44:04 -0300
commit651fef5fac8f370ce9e553d59f1b7832b277017f (patch)
tree2202663e57bf8134e9658612aa7b4daa3ea60cd2
parentcb00ac9cfb0ec4472ac5a61028fe38c075ef1a80 (diff)
downloadvim-651fef5fac8f370ce9e553d59f1b7832b277017f.tar.gz
vim-651fef5fac8f370ce9e553d59f1b7832b277017f.tar.bz2
Fix: move back from vim-markdown to vim-markdown-folding
-rw-r--r--.gitmodules4
-rw-r--r--vim.dot.link/filetype.vim20
m---------vim.dot.link/pack/preservim/opt/vim-markdown (renamed from vim.dot.link/pack/preservim/start/vim-markdown)0
m---------vim.dot.link/pack/rafkaplon/start/vim-markdown-folding (renamed from vim.dot.link/pack/rafkaplon/opt/vim-markdown-folding)0
4 files changed, 12 insertions, 12 deletions
diff --git a/.gitmodules b/.gitmodules
index 17f1e6f..4556904 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -60,7 +60,7 @@
# While this fork seems maintained: https://github.com/xolox/vim-session/issues/185
url = https://github.com/romgrk/vim-session
[submodule "vim.dot.link/bundle/vim-markdown-folding"]
- path = vim.dot.link/pack/rafkaplon/opt/vim-markdown-folding
+ path = vim.dot.link/pack/rafkaplon/start/vim-markdown-folding
# Seems unmaintained:
#url = https://github.com/masukomi/vim-markdown-folding
# While this other repo fixes https://github.com/masukomi/vim-markdown-folding/pull/43
@@ -72,5 +72,5 @@
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/start/vim-markdown
+ path = vim.dot.link/pack/preservim/opt/vim-markdown
url = https://github.com/preservim/vim-markdown
diff --git a/vim.dot.link/filetype.vim b/vim.dot.link/filetype.vim
index 522d674..9ab8afd 100644
--- a/vim.dot.link/filetype.vim
+++ b/vim.dot.link/filetype.vim
@@ -16,18 +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()
+ 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 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
+ "autocmd!
+ "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
diff --git a/vim.dot.link/pack/preservim/start/vim-markdown b/vim.dot.link/pack/preservim/opt/vim-markdown
-Subproject a657e697376909c41475a686eeef7fc7a4972d9
+Subproject a657e697376909c41475a686eeef7fc7a4972d9
diff --git a/vim.dot.link/pack/rafkaplon/opt/vim-markdown-folding b/vim.dot.link/pack/rafkaplon/start/vim-markdown-folding
-Subproject 7d223be1adfa0e14c3930ac4aab9dc2594acf4c
+Subproject 7d223be1adfa0e14c3930ac4aab9dc2594acf4c