more formatters

master
TiynGER 5 years ago
parent 3f873af37e
commit 6fbddba8eb

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

Loading…
Cancel
Save