2021-09-09 14:05:05 +02:00
|
|
|
|
"source ~/.vim/vimrc.bepo
|
2020-09-30 00:29:42 +02:00
|
|
|
|
|
|
|
|
|
" load plugins
|
2021-01-24 16:59:18 +01:00
|
|
|
|
" execute pathogen#infect()
|
2020-09-30 00:29:42 +02:00
|
|
|
|
filetype plugin indent on
|
2020-05-14 11:43:58 +02:00
|
|
|
|
|
|
|
|
|
colorscheme codedark
|
2021-07-30 17:40:14 +02:00
|
|
|
|
set term=screen-256color " règle error tmux pour la couleur
|
|
|
|
|
" rajoutez dans .tmux.conf :
|
|
|
|
|
" set -g default-terminal "screen-256color"
|
|
|
|
|
|
2021-10-14 08:45:14 +02:00
|
|
|
|
" options obligatoires pour le plugin orgmode
|
2021-09-30 22:24:56 +02:00
|
|
|
|
packloadall
|
|
|
|
|
silent! helptags ALL
|
|
|
|
|
|
2021-10-14 08:45:14 +02:00
|
|
|
|
" options pour vimtex
|
|
|
|
|
let g:vimtex_compiler_enabled = 0
|
|
|
|
|
let g:vimtex_view_enabled = 0
|
|
|
|
|
|
2021-01-24 16:59:18 +01:00
|
|
|
|
syntax on
|
2021-10-14 08:45:14 +02:00
|
|
|
|
let mapleader='\'
|
2021-09-30 23:45:49 +02:00
|
|
|
|
let maplocalleader=';'
|
2021-06-12 17:25:55 +02:00
|
|
|
|
filetype plugin indent on " load filetype-specific indent files
|
2020-05-14 11:43:58 +02:00
|
|
|
|
|
2021-06-12 17:25:55 +02:00
|
|
|
|
set tabstop=4 " affiche 1 tab comme 4 espaces
|
2020-05-14 11:43:58 +02:00
|
|
|
|
set softtabstop=4
|
2021-06-12 17:25:55 +02:00
|
|
|
|
set shiftwidth=4 " > indente de 4 espaces
|
|
|
|
|
set expandtab " tab = 4 espaces
|
2021-07-07 11:49:42 +02:00
|
|
|
|
set smarttab " insère des tab en début de ligne selon shiftwidth
|
|
|
|
|
set ai " indentation automatique
|
|
|
|
|
set si " auto indentation + intelligente
|
|
|
|
|
set wrap " coupe la ligne si elle est plus grande que la fenetre
|
|
|
|
|
" et la met en dessous
|
2020-05-14 11:43:58 +02:00
|
|
|
|
|
2021-09-03 01:10:33 +02:00
|
|
|
|
set colorcolumn=80
|
|
|
|
|
hi ColorColumn ctermbg=darkgrey
|
|
|
|
|
|
2021-06-12 17:25:55 +02:00
|
|
|
|
set number " affiche les numéros de lignes
|
|
|
|
|
set relativenumber " affiche les numéros de lignes en fonction de l’actuelle
|
|
|
|
|
set noerrorbells " désactive le son en cas d’erreur
|
|
|
|
|
set laststatus=2 " affiche le nom du fichier en bas
|
|
|
|
|
set showcmd " affiche la commande en bas
|
|
|
|
|
set cursorline " ligne actuelle en couleur
|
2020-05-14 11:43:58 +02:00
|
|
|
|
set wildmenu " visual autocomplete for command menu
|
|
|
|
|
set lazyredraw " redraw only when we need to.
|
|
|
|
|
|
2021-06-12 17:25:55 +02:00
|
|
|
|
set showmatch " highlight matching [{()}]
|
2020-05-14 11:43:58 +02:00
|
|
|
|
set incsearch " search as characters are entered
|
|
|
|
|
set hlsearch " highlight matches
|
|
|
|
|
|
2021-09-09 14:05:05 +02:00
|
|
|
|
" folding (cacher les fonctions)
|
|
|
|
|
set foldenable " activation des fold
|
|
|
|
|
set foldmethod=syntax
|
|
|
|
|
set foldlevelstart=10 " nombre de fold déjà ouvert de base
|
|
|
|
|
set foldnestmax=10 " nombre de fold dans des folds
|
|
|
|
|
|
2021-06-12 17:25:55 +02:00
|
|
|
|
" paramètres de plugins
|
|
|
|
|
let g:rainbow_active = 1
|
|
|
|
|
let g:doge_doc_standard_c='kernel_doc'
|
2021-10-14 08:45:14 +02:00
|
|
|
|
"let g:grammalecte_cli_py='$HOME/.local/bin/grammalecte/grammalecte-cli.py'
|
2021-06-12 17:25:55 +02:00
|
|
|
|
|
2021-01-24 16:59:18 +01:00
|
|
|
|
" parametre pour la taille des espaces selon le langage
|
2020-09-30 00:29:42 +02:00
|
|
|
|
autocmd Filetype java setlocal expandtab tabstop=8 shiftwidth=8 softtabstop=8
|
|
|
|
|
autocmd Filetype javascript setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
2021-01-24 16:59:18 +01:00
|
|
|
|
autocmd Filetype c setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|