dotfiles/vim/config/filetypes.vim
Tobias Manske 5cbb3a63c6
VIM: Cleanup
- .vimrc:
        Restructured the settings.
        Moved the Rmarkdown settings to a new config file
        'config/filetypes.vim'

- config/plugin.vim:
        Fixed spacing

- .gitmodules: moved traces.vim down

Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
2018-09-01 11:22:54 +02:00

14 lines
387 B
VimL

" This config includes custom settings for special filetypes
" Rmarkdown / .rmd
function Rmarkdown()
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()