dotfiles/vim/config/filetypes.vim
2022-06-01 19:17:39 +02:00

19 lines
479 B
VimL

" This config includes custom settings for special filetypes
" Markdown / .md
function Markdown()
set filetype=markdown
endfunction
autocmd BufNewFile,BufReadPost *.Rmd call Markdown()
autocmd BufNewFile,BufReadPost *.rmd call Markdown()
autocmd BufNewFile,BufReadPost *.md call Markdown()
" Groovy syntax highlighting
au BufNewFile,BufRead Jenkinsfile set filetype=groovy
au BufNewFile,BufRead *.bu set filetype=yaml
au BufNewFile,BufRead .latexmkrc set filetype=perl