dotfiles/vim/config/filetypes.vim

18 lines
434 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 .latexmkrc set filetype=perl