summaryrefslogtreecommitdiff
path: root/plugin/perso.vim
blob: 29143fb52aae1ea8a337f393c95336b20e440c8b (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
50
51
52
53
54
55
56
57
58
set showcmd

set backspace=indent,eol,start

set expandtab
set shiftwidth=2
set softtabstop=2
set cindent
set clipboard=unnamed
set ruler

map <leader>j <C-W>j
map <leader>k <C-W>k
map <leader>h <C-W>h
map <leader>l <C-W>l




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>