mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-11-03 22:11:16 +01:00 
			
		
		
		
	more formatters
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user