2023-05-03 12:16:54 +02:00
|
|
|
set nocompatible " be iMproved, required
|
|
|
|
filetype off " required
|
|
|
|
|
|
|
|
set rtp+=~/.vim/bundle/Vundle.vim
|
|
|
|
call vundle#begin()
|
|
|
|
Plugin 'VundleVim/Vundle.vim'
|
|
|
|
|
|
|
|
"Plugins installés depuis Vim Awesome
|
|
|
|
Plugin 'preservim/nerdtree'
|
|
|
|
Plugin 'junegunn/fzf.vim'
|
|
|
|
Plugin 'jeffkreeftmeijer/vim-numbertoggle'
|
|
|
|
Plugin 'sheerun/vim-polyglot'
|
|
|
|
Plugin 'rip-rip/clang_complete'
|
|
|
|
Plugin 'jodosha/vim-devnotes'
|
|
|
|
Plugin 'joshdick/onedark.vim'
|
|
|
|
Plugin 'mbbill/undotree'
|
|
|
|
Plugin 'flazz/vim-colorschemes'
|
|
|
|
Plugin 'ervandew/supertab'
|
|
|
|
|
|
|
|
call vundle#end() " required
|
|
|
|
filetype plugin indent on " required
|
|
|
|
|
|
|
|
"Parametre de vim
|
|
|
|
syntax on
|
|
|
|
set smartindent
|
|
|
|
set shiftround
|
|
|
|
set wildmenu
|
|
|
|
set cursorline
|
|
|
|
set hlsearch
|
|
|
|
set mouse=a
|
2023-06-14 10:03:06 +02:00
|
|
|
set termwinsize=10x150
|
2023-06-14 12:52:27 +02:00
|
|
|
|
2023-05-03 12:16:54 +02:00
|
|
|
"Numérotation avec numbertoggle
|
|
|
|
set number relativenumber
|
|
|
|
|
|
|
|
"Theme vim
|
2023-05-23 11:13:18 +02:00
|
|
|
"colorscheme onedark
|
2023-05-03 12:16:54 +02:00
|
|
|
colorscheme space-vim-dark
|
|
|
|
|
|
|
|
"Language vim
|
|
|
|
let g:polyglot_enabled = ['sh', 'git', 'blade','scss','html5']
|
|
|
|
|
|
|
|
"Raccourcis Note
|
2023-06-14 10:03:06 +02:00
|
|
|
nmap <F2> :call DevNotes()<CR>
|
2023-05-03 12:16:54 +02:00
|
|
|
|
|
|
|
"Raccourcis NerdTree
|
2023-06-14 10:03:06 +02:00
|
|
|
nnoremap <F3> :NERDTreeFocus<CR>
|
|
|
|
nnoremap <F3> :NERDTreeToggle<CR>
|
2023-05-03 12:16:54 +02:00
|
|
|
|
|
|
|
"Raccourcis historique
|
2023-06-14 10:03:06 +02:00
|
|
|
nnoremap <F4> :UndotreeToggle<CR>
|
2023-05-03 12:16:54 +02:00
|
|
|
|
2023-05-09 16:30:41 +02:00
|
|
|
"Raccourcis terminal
|
2023-06-14 10:03:06 +02:00
|
|
|
nnoremap <F5> :bot term<CR>
|
|
|
|
tnoremap <F6> <c-w>N
|
2023-05-03 12:16:54 +02:00
|
|
|
|
|
|
|
"Raccourci vers une recherche duckduckgo
|
2023-06-14 10:03:06 +02:00
|
|
|
vmap g :<C-U> !firefox "https://duckduckgo.com/?q=<cword>&t=newext&atb=v372-6&ia=web" >& /dev/null <CR><CR>
|
2023-05-03 12:16:54 +02:00
|
|
|
|
|
|
|
"Raccourci vers aide vim
|
2023-06-14 10:03:06 +02:00
|
|
|
nmap <F7> :!elinks https://agreugr.eu<CR>
|
2023-05-03 12:16:54 +02:00
|
|
|
|
|
|
|
"Raccourci onglet
|
2023-06-14 10:03:06 +02:00
|
|
|
nmap <F8> :tabnew<CR>
|
|
|
|
nmap <F9> :tabnext<CR>
|
2023-05-03 12:16:54 +02:00
|
|
|
|
2023-05-23 17:28:58 +02:00
|
|
|
"Fermeture de vimscode
|
2023-06-14 10:03:06 +02:00
|
|
|
tnoremap <F10> <c-d>
|
2023-05-23 17:28:58 +02:00
|
|
|
nnoremap <F10> :NERDTreeToggle<cr> > :wq<cr>
|
|
|
|
|
2023-05-03 12:16:54 +02:00
|
|
|
"Raccourci plugin installer
|
2023-06-14 10:03:06 +02:00
|
|
|
nmap œ :PluginList<CR>
|
2023-05-03 12:16:54 +02:00
|
|
|
|
|
|
|
"Raccourci au lancement de vim
|
2023-06-14 10:13:10 +02:00
|
|
|
|
2023-06-14 10:03:06 +02:00
|
|
|
au VimEnter *.cpp :NERDTreeFocus
|
|
|
|
au VimEnter *.cpp :bot term
|
2023-05-09 11:25:26 +02:00
|
|
|
|
2023-06-14 10:03:06 +02:00
|
|
|
au VimEnter *.ino :NERDTreeFocus
|
|
|
|
au VimEnter *.ino :bot term
|