VIM: Change Markdown config
This commit is contained in:
parent
e71b8be37d
commit
d22159ca42
@ -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()
|
||||
|
||||
|
@ -77,6 +77,10 @@ let g:ale_linters = {"python": ["flake8"], "python3": ["flake8"]}
|
||||
let g:UltiSnipsJumpForwardTrigger="<c-b>"
|
||||
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
|
||||
|
||||
" VIM-MARKDOWN
|
||||
let g:markdown_syntax_conceal=0
|
||||
let g:vim_markdown_conceal = 0
|
||||
|
||||
|
||||
" Whitespace
|
||||
autocmd BufEnter *[^(.rmd|.snippets)] EnableStripWhitespaceOnSave
|
||||
|
Loading…
Reference in New Issue
Block a user