-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
64 lines (47 loc) · 1.76 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
execute pathogen#infect()
syntax on
filetype plugin indent on
" Desactive un pop up Vim jedi qui affiche des informations sur les fonctions
let g:jedi#show_call_signatures = "2"
set number
set tabstop=4
set shiftwidth=4
set autoindent
set backspace=indent,eol,start
colorscheme habamax
set background=dark
set scrolloff=8
" Start NERDTree when Vim is started without file arguments.
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
" Raccourci pour ouvrir/fermer NERDTree
nnoremap <silent> <C-n> :NERDTreeToggle<CR>
" Changer de fenêtre avec Ctrl + Flèche directionnelle
nnoremap <silent> <C-Left> :wincmd h<CR>
nnoremap <silent> <C-Right> :wincmd l<CR>
nnoremap <silent> <C-Up> :wincmd k<CR>
nnoremap <silent> <C-Down> :wincmd j<CR>
" Redimensionner les fenêtres avec Ctrl + Shift + Flèches directionnelles
nnoremap <silent> <C-S-Up> :resize +2<CR>
nnoremap <silent> <C-S-Down> :resize -2<CR>
nnoremap <silent> <C-S-Left> :vertical resize +2<CR>
nnoremap <silent> <C-S-Right> :vertical resize -2<CR>
" Set redo on Shift + U
nnoremap <silent> <S-u> <C-r>
" Active ou désactive les suggestions de Copilot
let g:copilot_enabled = 0
" Raccourci pour activer/désactiver Copilot
nnoremap <C-c> :call ToggleCopilot()<CR>
function! ToggleCopilot()
if g:copilot_enabled == 1
let g:copilot_enabled = 0
echo "Copilot désactivé"
else
let g:copilot_enabled = 1
echo "Copilot activé"
endif
endfunction
" prochaine suggestion copilot sur ²
imap ² <Plug>(copilot-next)