This commit is contained in:
histausse 2023-08-18 22:54:52 +02:00
parent 2ce86af7e8
commit 26659ee506

64
.vimrc
View file

@ -1,13 +1,65 @@
set tabstop=4 syntax enable
set softtabstop=0 expandtab filetype plugin indent on
set autoindent
filetype plugin on set encoding=utf8
syntax on
set encoding=utf-8 packloadall
" secure vim to use secret " secure vim to use secret
set noswapfile set noswapfile
set nobackup set nobackup
set nowritebackup set nowritebackup
set viminfo= set viminfo=
" colorscheme desert
" colorscheme evening
" colorscheme habamax
colorscheme slate
" Fix the parenthesis highlight
hi MatchParen cterm=underline ctermbg=none ctermfg=yellow
" Autocorect on crt+L
" setlocal spell
set spelllang=fr,en_gb
inoremap <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
" generate ALE help
silent! helptags ALL
" Usefull for latex eq
set conceallevel=1
" Snippets
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsSnippetDirectories=["mysnippets"]
" RUST
" Autoformat rust on save
let g:rustfmt_autosave = 1
" Enable all features when checking (conflict?)
let rust_cargo_check_all_features = 1
" PYTHON
augroup black_on_save
autocmd!
autocmd BufWritePre *.py Black
augroup end
au BufNewFile,BufRead *.py
\ set expandtab |
\ set autoindent |
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4
" Latex
autocmd FileType tex setlocal spell
let g:tex_flavor='latex'
let g:vimtex_view_method='zathura'
let g:vimtex_quickfix_mode=0
let g:tex_conceal='abdmg'
" Markdown
autocmd FileType markdown setlocal spell
let g:vim_markdown_folding_disabled = 1
let g:vim_markdown_math = 1