diff --git a/vim/config/filetypes.vim b/vim/config/filetypes.vim index 5854216..f076425 100644 --- a/vim/config/filetypes.vim +++ b/vim/config/filetypes.vim @@ -1,13 +1,11 @@ " This config includes custom settings for special filetypes - -" Rmarkdown / .rmd -function Rmarkdown() +" Markdown / .md +function Markdown() set filetype=markdown - set conceallevel=0 - let g:markdown_syntax_conceal=0 - let g:markdown_fenced_languages=['r', 'python', 'html', 'sql', 'bash=sh'] endfunction -autocmd BufNewFile,BufReadPost *.Rmd call Rmarkdown() -autocmd BufNewFile,BufReadPost *.rmd call Rmarkdown() + +autocmd BufNewFile,BufReadPost *.Rmd call Markdown() +autocmd BufNewFile,BufReadPost *.rmd call Markdown() +autocmd BufNewFile,BufReadPost *.md call Markdown() diff --git a/vim/config/pluginconfig.vim b/vim/config/pluginconfig.vim index eaac195..73eb7cd 100644 --- a/vim/config/pluginconfig.vim +++ b/vim/config/pluginconfig.vim @@ -77,6 +77,10 @@ let g:ale_linters = {"python": ["flake8"], "python3": ["flake8"]} let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" +" VIM-MARKDOWN +let g:markdown_syntax_conceal=0 +let g:vim_markdown_conceal = 0 + " Whitespace autocmd BufEnter *[^(.rmd|.snippets)] EnableStripWhitespaceOnSave