From 4fa9bc0531724f3a7db677e9c1cdfca14447dfb2 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 3 Jan 2020 16:41:33 +0100 Subject: [PATCH] markdown detection now works; remove conflicting configuration, fixing having a sourcefile (like a Python file) suddenly marked as markdown when switching back from a markdown file --- .vim/ftdetect/markdown.vim | 6 ------ .vimrc | 6 ------ 2 files changed, 12 deletions(-) delete mode 100644 .vim/ftdetect/markdown.vim diff --git a/.vim/ftdetect/markdown.vim b/.vim/ftdetect/markdown.vim deleted file mode 100644 index af041c2..0000000 --- a/.vim/ftdetect/markdown.vim +++ /dev/null @@ -1,6 +0,0 @@ -" 2014-02-27 force certain files to be highlighted with Markdown syntax -augroup filetypedetect - autocmd BufNew,BufNewFile,BufRead *.txt,*.text,*.md,*.markdown :setfiletype markdown -augroup END -" 2014-02-28 this really fixes the filetype recognition -autocmd BufWinEnter *.{md,mkd,mkdn,mark*,txt,text} silent setf markdown diff --git a/.vimrc b/.vimrc index 47241dd..dbffc66 100644 --- a/.vimrc +++ b/.vimrc @@ -398,12 +398,6 @@ Plug 'plasticboy/vim-markdown' " Use filetype name as fenced code block languages for syntax highlighting let g:vim_markdown_fenced_languages = ['c++=cpp', 'viml=vim', 'bash=sh', 'ini=dosini', 'python=python'] -if v:version >= 704 - " Pandoc, for stuff like autocompletion of citations from bibtex, other LaTeX - " stuff. Works with vim >= 7.4 - Plug 'vim-pandoc/vim-pandoc' -endif - " The NERD Commenter: A plugin that allows for easy commenting of code for " many filetypes.