summaryrefslogtreecommitdiff
path: root/plugin/perso.vim
blob: f736e10bc2e889d5d5abbef9e28cd5a8617a9b53 (plain)
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
set showcmd

set backspace=indent,eol,start

set expandtab
set shiftwidth=2
set softtabstop=2
set cindent


set encoding=utf-8
set fileencoding=utf-8 

colo darkZ

filetype plugin indent on


nnoremap <silent><A-o> :set paste<CR>m`o<Esc>``:set nopaste<CR>
nnoremap <silent><A-O> :set paste<CR>m`O<Esc>``:set nopaste<CR>


"inoremap {<CR> {<CR>}<up><C-o>$
"inoremap {{ {
"inoremap {} {}
"inoremap << <><left>
"inoremap [ []<left>
"inoremap [[ [
"inoremap [] []
"inoremap ( ()<left>
"inoremap (( (
"inoremap () ()
"inoremap " ""<left>
"inoremap "" ""
"inoremap ' ''<left>
"inoremap '' ''

"Perso C définition"
inoremap prt printf
inoremap swf printf
inoremap #in< #include<><left>
inoremap #de #define

" Personal shortcurts

nnoremap <silent>èè__    :set paste<CR>m`o<Esc>``:set nopaste<CR>
nmap <C-X> :TagbarToggle<CR>
nmap <C-C> :NERDTreeToggle<CR>