diff --git a/vim/.vim/conf.d/plugin/mkdx.vim b/vim/.vim/conf.d/plugin/mkdx.vim index e1766a01..742dfdc7 100644 --- a/vim/.vim/conf.d/plugin/mkdx.vim +++ b/vim/.vim/conf.d/plugin/mkdx.vim @@ -1,11 +1,15 @@ " vim: set sw=4 ts=4 sts=4 et foldmethod=marker spell: " mkdx Configuration -let g:mkdx#settings = { 'highlight': { 'enable': 1 }, +" https://github.com/SidOfc/mkdx/issues/151#issuecomment-846188322 +call mkdx#configure({ + \ 'highlight': { 'enable': 1 }, \ 'enter': { 'shift': 1 }, \ 'links': { 'external': { 'enable': 1 } }, - \ 'toc': { 'text': 'Table of Contents', 'update_on_write': 1 }, - \ 'fold': { 'enable': 0 } } + \ 'toc': { + \ 'text': 'Table of Contents', + \ 'update_on_write': 1 }, + \ 'fold': { 'enable': 1 } }) " for vim-polyglot users, it loads Plasticboy's markdown " plugin which unfortunately interferes with mkdx list indentation. let g:polyglot_disabled = ['markdown'] diff --git a/vim/.vim/filetype.vim b/vim/.vim/filetype.vim index 2bfdf588..3931f1fe 100644 --- a/vim/.vim/filetype.vim +++ b/vim/.vim/filetype.vim @@ -10,7 +10,6 @@ augroup filetypedetect au BufNewFile,BufRead .htaccess.* setf apache au BufRead pacman.log setf pacmanlog au BufNewFile,BufRead *.rfc setf rfc - au BufNewFile,BufRead *.md setf markdown au BufRead grub.cfg setf sh au BufNewFile,BufRead fcitx_skin.conf,*/fcitx*.{conf,desc}*,*/fcitx/profile setf dosini au BufNewFile,BufRead mimeapps.list setf desktop diff --git a/vim/.vim/spell/en.utf-8.add b/vim/.vim/spell/en.utf-8.add new file mode 100644 index 00000000..9a324072 --- /dev/null +++ b/vim/.vim/spell/en.utf-8.add @@ -0,0 +1,3 @@ +dotfile +dotfile +dotfiles diff --git a/vim/.vim/spell/en.utf-8.add.spl b/vim/.vim/spell/en.utf-8.add.spl new file mode 100644 index 00000000..a43d70ce Binary files /dev/null and b/vim/.vim/spell/en.utf-8.add.spl differ diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc index dd310d15..85acae51 100755 --- a/vim/.vim/vimrc +++ b/vim/.vim/vimrc @@ -258,8 +258,6 @@ call plug#begin('~/.vim/plugged') """"""" Markdown - " markdown syntax highlight, theme - Plug 'plasticboy/vim-markdown', {'for':'markdown'} " Markdown 语法支持 Plug 'SidOfc/mkdx' @@ -272,13 +270,6 @@ call plug#begin('~/.vim/plugged') Plug 'neovimhaskell/haskell-vim', {'for':'haskell'} - """"""" Pandoc - " Pandoc Support - Plug 'vim-pandoc/vim-pandoc' - " Pandoc Syntax Highlight Support - Plug 'vim-pandoc/vim-pandoc-syntax' - - """"""" LaTeX Plug 'lervag/vimtex'