VIM: Change Markdown config

This commit is contained in:
Tobias Manske 2019-02-17 12:04:49 +01:00
parent e71b8be37d
commit d22159ca42
No known key found for this signature in database
GPG Key ID: 978D99F12D4E041F
2 changed files with 10 additions and 8 deletions

View File

@ -1,13 +1,11 @@
" This config includes custom settings for special filetypes " This config includes custom settings for special filetypes
" Markdown / .md
" Rmarkdown / .rmd function Markdown()
function Rmarkdown()
set filetype=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 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()

View File

@ -77,6 +77,10 @@ let g:ale_linters = {"python": ["flake8"], "python3": ["flake8"]}
let g:UltiSnipsJumpForwardTrigger="<c-b>" let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>" let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" VIM-MARKDOWN
let g:markdown_syntax_conceal=0
let g:vim_markdown_conceal = 0
" Whitespace " Whitespace
autocmd BufEnter *[^(.rmd|.snippets)] EnableStripWhitespaceOnSave autocmd BufEnter *[^(.rmd|.snippets)] EnableStripWhitespaceOnSave