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>
This commit is contained in:
2018-09-01 11:17:30 +02:00
parent b98cc52343
commit 5cbb3a63c6
4 changed files with 50 additions and 53 deletions

13
vim/config/filetypes.vim Normal file
View File

@ -0,0 +1,13 @@
" 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()

View File

@ -21,8 +21,6 @@ let g:airline_theme="minimalist"
autocmd TextChanged * GitGutter
" JavaComplete
if has("autocmd")
autocmd Filetype java setlocal omnifunc=javacomplete#CompleteParamsInfo