more formatters

master
TiynGER 4 years ago
parent 44d5569cdd
commit 52fbcc9752

@ -21,6 +21,8 @@ Plug 'junegunn/fzf.vim' " Quickly jump files using fzf
Plug 'ryanoasis/vim-devicons' " Enable Icons for vim
Plug 'rrethy/vim-hexokinase' , {'do': 'make hexokinase'} " Color Preview
Plug 'tomasiser/vim-code-dark' " adding colorscheme
Plug 'godlygeek/tabular' " Tabularizing things
Plug 'plasticboy/vim-markdown' , {'for': 'md'} " Helps for markdown
call plug#end()
" Rainbow
@ -66,16 +68,22 @@ let g:Hexokinase_optInPatterns = [
let g:Hexokinase_highlighters = ['backgroundfull']
autocmd VimEnter * HexokinaseTurnOn
" Vim-Mardown
let g:vim_markdown_folding_disabled=1
let g:vim_markdown_no_default_key_mappings=1
" End Plugin section
" Start Formatting section
autocmd FileType java,python noremap <F8> gggqG
autocmd FileType java,python,c noremap <F8> gggqG
au FileType python setlocal formatprg=autopep8\ -
au FileType java setlocal formatprg=google-java-format\ -
au FileType c setlocal formatprg=astyle\ --mode=c
" End Formatting section
let mapleader =","
@ -132,6 +140,7 @@ autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
autocmd VimLeave *.tex !texclear %
" Read files correctly
autocmd BufRead,BufNewFile *.tex set filetype=tex
autocmd BufRead,BufNewFile *.h set filetype=c
" Mapping Dictionaries
map <F5> :setlocal spell! spelllang=de_de<CR>

Loading…
Cancel
Save