-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
78 lines (68 loc) · 2.57 KB
/
.vimrc
File metadata and controls
78 lines (68 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
source ~/.vimrc_common
set nocompatible " no vi compatibility
filetype off
" ==========================================
" Divers
" ==========================================
set title
set number
set ruler " Affiche la position actuelle du curseur
set wrap " Affiche les lignes trop longues sur plusieurs lignes
set scrolloff=3 " Affiche un minimum de 3 lignes autour du curseur
" (pour le scroll)
set ignorecase " Ignore la casse lors d’une recherche
set smartcase " Si une recherche contient une majuscule,
" re-active la sensibilite a la casse
set incsearch " Surligne les resultats de recherche pendant la
" saisie
set hlsearch " Surligne les resultats de recherche
set guioptions-=m "Hide toolbar
" ==========================================
" Met en surbrillance des lignes et colonnes
" ==========================================
set cursorline " highlight current line
set cursorcolumn " highlight current column
set colorcolumn=78
hi cursorline guibg=#3a3a3a " highlight bg color of current line
hi cursorcolumn guibg=#3a3a3a " highlight cursor
hi ColorColumn guibg=#2e2e2e
hi ExtraWhitespace guibg=#550000
hi SpecialKey term=bold ctermfg=DarkCyan guifg=#555555
set autoindent smartindent " indent at the same level of the previous line
set shiftwidth=4 ts=4 sts=4 " use indents of 4 spaces
set shiftround " arrondit l'indentation
set expandtab " tabs are tabs, not spaces
set matchpairs+=<:> " match, to be used with %
set pastetoggle=<f12> " pastetoggle (sane indentation on pastes)
set comments=sl:/*,mb:*,elx:*/ " auto format comment blocks
"set foldenable " auto fold code
"set foldmethod=marker " type of folding
let g:indent_guides_start_level = 2
let g:indent_guides_guide_size = 1
let g:indent_guides_enable_on_vim_startup = 1
set showmatch " Show matching brackets.
set mat=5 " Bracket blinking.
" -- Beep
"set visualbell
set noerrorbells
" Active la coloration syntaxique
syntax enable
" Active les comportements specifiques aux types de fichiers comme
" la syntaxe et l’indentation
filetype off
filetype plugin on
filetype indent on
colorscheme desert
set enc=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf8,prc
set antialias
" ============
" Comportement
" ============
set mousemodel=popup " Le clic droit ouvre un menu
set wildchar=<Tab> " Use <Tab> to complete
set ignorecase smartcase incsearch " Smart search
set history=20 " history in cmd
set ch=3 " Rend la ligne de commande de 2 lignes plus grande
set backspace=indent,eol,start " autorisation du retour arrière