-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
120 lines (89 loc) · 2.73 KB
/
.vimrc
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Description:
" This is the .vimrc file
"
" Maintainer:
" EAR Patrick "MonPote"
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" vim options
set nocompatible
filetype off
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
" Vundle Plugin
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Vundle bundle
Plugin 'gmarik/Vundle.vim'
" Add a status cool status bar
Plugin 'bling/vim-airline'
" Git + vim = Win
Plugin 'fugitive.vim'
" Enhance the highligth of vim
Plugin 'octol/vim-cpp-enhanced-highlight'
" Color the parentheses
Bundle 'kien/rainbow_parentheses.vim'
" Correct your syntax when you are saving
Bundle 'Syntastic'
" Help you to comment quickly
Plugin 'The-NERD-Commenter'
" Improve the explorer of vim
Plugin 'The-NERD-tree'
" colorscheme
Plugin 'jellybeans.vim'
" Track the engine.
Plugin 'SirVer/ultisnips'
" Snippets are separated from the engine. Add this if you want them:
Plugin 'honza/vim-snippets'
" Trigger configuration. Do not use <tab> if you use
" https://github.com/Valloric/YouCompleteMe.
" let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
" To install the Bundle :BundleInstall in vim
" To install the Plugin :PluginInstall in vim
call vundle#end()
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vundle Plugin end
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" vim_airline config
set laststatus=2 " force the status bar when there is only one buffer
syn on
syntax enable
filetype plugin indent on
" vim options
set number
set encoding=utf-8
set showcmd
set scrolloff=5
set cursorline
set cursorcolumn
set textwidth=79
set colorcolumn=80
if version >=703
set colorcolumn =+1
endif
set list listchars=tab:»·,trail:·
" interface
colorscheme jellybeans
" coding style
set expandtab "remplace les tabulations par des espaces
set tabstop=8 "taille d'une tabulation (8 par default)
set softtabstop=4 "nombre d'espace lors d'un appuie tab
set shiftwidth=4 "niveau d'intentation
" autocmd BufWritePre * :%s/\s\+$//
match Todo /\s\+$/
" enable doxygen syntax
let g:load_doxygen_syntax=1
au VimEnter * RainbowParenthesesToggleAll
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
let g:syntastic_cpp_compiler='clang++'
let g:syntastic_c_compiler='clang'
let g:syntastic_cpp_compiler_options = "-std=c++11"