From d22159ca42c029f6730a11888dd01639d6c58f56 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Sun, 17 Feb 2019 12:04:49 +0100 Subject: [PATCH] VIM: Change Markdown config --- vim/config/filetypes.vim | 14 ++++++-------- vim/config/pluginconfig.vim | 4 ++++ 2 files changed, 10 insertions(+), 8 deletions(-) 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