2021-06-12 17:25:55 +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-01-24 16:59:18 +01:00
|
|
|
|
syntax on
|
2021-06-12 17:25:55 +02:00
|
|
|
|
let mapleader=' '
|
|
|
|
|
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
|
2020-05-14 11:43:58 +02:00
|
|
|
|
set smarttab
|
|
|
|
|
set ai
|
|
|
|
|
set si
|
|
|
|
|
set wrap
|
|
|
|
|
|
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-06-12 17:25:55 +02:00
|
|
|
|
" paramètres de plugins
|
|
|
|
|
let g:rainbow_active = 1
|
|
|
|
|
let g:doge_doc_standard_c='kernel_doc'
|
|
|
|
|
let g:grammalecte_cli_py='$HOME/.local/bin/grammalecte/grammalecte-cli.py'
|
|
|
|
|
|
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
|