From 2990a71cd83000c1baee11bd11627587a8012028 Mon Sep 17 00:00:00 2001 From: Thelucri Date: Wed, 3 May 2023 12:16:54 +0200 Subject: [PATCH] Premier commit --- vim-conf/bundle/Vundle.vim | 1 + vim-conf/bundle/clang_complete | 1 + vim-conf/bundle/fzf.vim | 1 + vim-conf/bundle/nerdtree | 1 + vim-conf/bundle/onedark.vim | 1 + vim-conf/bundle/supertab | 1 + vim-conf/bundle/undotree | 1 + vim-conf/bundle/vim-colorschemes | 1 + vim-conf/bundle/vim-devnotes | 1 + vim-conf/bundle/vim-numbertoggle | 1 + vim-conf/bundle/vim-polyglot | 1 + vim-conf/help/aide-arduino | 3 ++ vim-conf/help/aide-esp32 | 3 ++ vim-conf/vimscode.sh | 9 ++++ vimrc-conf | 72 ++++++++++++++++++++++++++++++++ 15 files changed, 98 insertions(+) create mode 160000 vim-conf/bundle/Vundle.vim create mode 160000 vim-conf/bundle/clang_complete create mode 160000 vim-conf/bundle/fzf.vim create mode 160000 vim-conf/bundle/nerdtree create mode 160000 vim-conf/bundle/onedark.vim create mode 160000 vim-conf/bundle/supertab create mode 160000 vim-conf/bundle/undotree create mode 160000 vim-conf/bundle/vim-colorschemes create mode 160000 vim-conf/bundle/vim-devnotes create mode 160000 vim-conf/bundle/vim-numbertoggle create mode 160000 vim-conf/bundle/vim-polyglot create mode 100644 vim-conf/help/aide-arduino create mode 100644 vim-conf/help/aide-esp32 create mode 100755 vim-conf/vimscode.sh create mode 100644 vimrc-conf diff --git a/vim-conf/bundle/Vundle.vim b/vim-conf/bundle/Vundle.vim new file mode 160000 index 0000000..b255382 --- /dev/null +++ b/vim-conf/bundle/Vundle.vim @@ -0,0 +1 @@ +Subproject commit b255382d6242d7ea3877bf059d2934125e0c4d95 diff --git a/vim-conf/bundle/clang_complete b/vim-conf/bundle/clang_complete new file mode 160000 index 0000000..d866f31 --- /dev/null +++ b/vim-conf/bundle/clang_complete @@ -0,0 +1 @@ +Subproject commit d866f31a6b1cfc725dd015293e0a275a6ae9beb0 diff --git a/vim-conf/bundle/fzf.vim b/vim-conf/bundle/fzf.vim new file mode 160000 index 0000000..dc71692 --- /dev/null +++ b/vim-conf/bundle/fzf.vim @@ -0,0 +1 @@ +Subproject commit dc71692255b62d1f67dc55c8e51ab1aa467b1d46 diff --git a/vim-conf/bundle/nerdtree b/vim-conf/bundle/nerdtree new file mode 160000 index 0000000..fc85a6f --- /dev/null +++ b/vim-conf/bundle/nerdtree @@ -0,0 +1 @@ +Subproject commit fc85a6f07c2cd694be93496ffad75be126240068 diff --git a/vim-conf/bundle/onedark.vim b/vim-conf/bundle/onedark.vim new file mode 160000 index 0000000..b6b5ffe --- /dev/null +++ b/vim-conf/bundle/onedark.vim @@ -0,0 +1 @@ +Subproject commit b6b5ffe31a195a3077338d7a506b905e4a51590f diff --git a/vim-conf/bundle/supertab b/vim-conf/bundle/supertab new file mode 160000 index 0000000..f0093ae --- /dev/null +++ b/vim-conf/bundle/supertab @@ -0,0 +1 @@ +Subproject commit f0093ae12a9115498f887199809a6114659fc858 diff --git a/vim-conf/bundle/undotree b/vim-conf/bundle/undotree new file mode 160000 index 0000000..485f01e --- /dev/null +++ b/vim-conf/bundle/undotree @@ -0,0 +1 @@ +Subproject commit 485f01efde4e22cb1ce547b9e8c9238f36566f21 diff --git a/vim-conf/bundle/vim-colorschemes b/vim-conf/bundle/vim-colorschemes new file mode 160000 index 0000000..fd8f122 --- /dev/null +++ b/vim-conf/bundle/vim-colorschemes @@ -0,0 +1 @@ +Subproject commit fd8f122cef604330c96a6a6e434682dbdfb878c9 diff --git a/vim-conf/bundle/vim-devnotes b/vim-conf/bundle/vim-devnotes new file mode 160000 index 0000000..09f1bd0 --- /dev/null +++ b/vim-conf/bundle/vim-devnotes @@ -0,0 +1 @@ +Subproject commit 09f1bd0e468584e7770986a1a089e1a9b6bf3235 diff --git a/vim-conf/bundle/vim-numbertoggle b/vim-conf/bundle/vim-numbertoggle new file mode 160000 index 0000000..075b747 --- /dev/null +++ b/vim-conf/bundle/vim-numbertoggle @@ -0,0 +1 @@ +Subproject commit 075b7478777e694fbac330ee34a74590dad0fee1 diff --git a/vim-conf/bundle/vim-polyglot b/vim-conf/bundle/vim-polyglot new file mode 160000 index 0000000..bc8a81d --- /dev/null +++ b/vim-conf/bundle/vim-polyglot @@ -0,0 +1 @@ +Subproject commit bc8a81d3592dab86334f27d1d43c080ebf680d42 diff --git a/vim-conf/help/aide-arduino b/vim-conf/help/aide-arduino new file mode 100644 index 0000000..ba82b88 --- /dev/null +++ b/vim-conf/help/aide-arduino @@ -0,0 +1,3 @@ +Aide pour arduino : + + diff --git a/vim-conf/help/aide-esp32 b/vim-conf/help/aide-esp32 new file mode 100644 index 0000000..1c3dc23 --- /dev/null +++ b/vim-conf/help/aide-esp32 @@ -0,0 +1,3 @@ +Aide pour ESP32 : + + diff --git a/vim-conf/vimscode.sh b/vim-conf/vimscode.sh new file mode 100755 index 0000000..0a64e82 --- /dev/null +++ b/vim-conf/vimscode.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if [ "$1" = '-a' ] || [ "$1" = '-arduino' ] ; then + vim -p $2 ~/.vim/help/aide-arduino +fi + +if [ "$1" = '-e' ] || [ "$1" = '-esp' ] ; then + vim -p $2 ~/.vim/help/aide-esp32 +fi diff --git a/vimrc-conf b/vimrc-conf new file mode 100644 index 0000000..71f9a1b --- /dev/null +++ b/vimrc-conf @@ -0,0 +1,72 @@ +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 +set termwinsize=10x150 + +"Numérotation avec numbertoggle +set number relativenumber + +"Theme vim +"colorscheme onedark "autre theme vim +colorscheme space-vim-dark + +"Language vim +let g:polyglot_enabled = ['sh', 'git', 'blade','scss','html5'] + +"Raccourcis Note +nmap :call DevNotes() + +"Raccourcis NerdTree +nnoremap :NERDTreeFocus +nnoremap :NERDTreeToggle + +"Raccourcis historique +nnoremap :UndotreeToggle + +"Raccourcis terminale +nmap :bot term + +"Raccourci vers une recherche duckduckgo +vmap g : !firefox "https://duckduckgo.com/?q=&t=newext&atb=v372-6&ia=web" >& /dev/null + +"Raccourci vers aide vim +nmap :!elinks https://agreugr.eu + +"Raccourci onglet +nmap :tabnew +nmap :tabnext + +"Raccourci plugin installer +nmap œ :PluginList + +"Raccourci au lancement de vim + +au VimEnter *.cpp :NERDTreeFocus +au VimEnter *.cpp :bot term