You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3 KiB
VimL

syntax enable
filetype plugin indent on
set encoding=utf8
packloadall
" secure vim to use secret
set noswapfile
set nobackup
set nowritebackup
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