vim
This commit is contained in:
parent
2ce86af7e8
commit
26659ee506
1 changed files with 58 additions and 6 deletions
64
.vimrc
64
.vimrc
|
@ -1,13 +1,65 @@
|
|||
set tabstop=4
|
||||
set softtabstop=0 expandtab
|
||||
set autoindent
|
||||
syntax enable
|
||||
filetype plugin indent on
|
||||
|
||||
filetype plugin on
|
||||
syntax on
|
||||
set encoding=utf-8
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue