Compare commits
129 commits
Author | SHA1 | Date | |
---|---|---|---|
bastien | 37c3c32bd5 | ||
bastien | 495bfc084e | ||
bastien | 47bfc15e33 | ||
bastien | 0315877f87 | ||
bastien | e77b0d1f6d | ||
bastien | bd7ed88de7 | ||
bastien | 1d52812294 | ||
bastien | d0c3863d18 | ||
bastien | 04e2ecb5c8 | ||
bastien | f47a6442ec | ||
bastien | 8b1b59082f | ||
bastien | ca02351e15 | ||
bastien | c4f9fec391 | ||
bastien | fe193563f5 | ||
bastien | add185bf7e | ||
bastien | 97699428c2 | ||
bastien | d0fe339f2b | ||
bastien | e4e10e379f | ||
bastien | ebf6f8d33f | ||
bastien | 04513a2e45 | ||
bastien | 270d4472e0 | ||
bastien | 89c4922bfa | ||
bastien | 3083d89c08 | ||
bastien | aeb88394ca | ||
bastien | 952e85032e | ||
bastien | f85480f490 | ||
bastien | 3657aa6068 | ||
bastien | 081da8a840 | ||
bastien | 9008561fbb | ||
bastien | 0f5871e30e | ||
bastien | dd8f8cf656 | ||
bastien | 8ddf73a22a | ||
bastien | 51a78d2a7e | ||
bastien | ee14f6a205 | ||
bastien | f6468d6dd5 | ||
bastien | 4058cac366 | ||
bastien | 3955ad781b | ||
bastien | aa77b7b8f7 | ||
bastien | 8745ccad80 | ||
bastien | ddba367d90 | ||
bastien | 0e93e57614 | ||
bastien | 1b6d664bd3 | ||
bastien | e231b6c072 | ||
bastien | 64d5df63b3 | ||
bastien | 082f233e9c | ||
bastien | 702bca8885 | ||
bastien | d3b9665df0 | ||
bastien | 57c85afbf6 | ||
bastien | 7c57c511bf | ||
bastien | 27d93b6358 | ||
bastien | 0264eb175c | ||
bastien | e8ae12b5c2 | ||
bastien | c278199ae6 | ||
bastien | d14c7a415d | ||
bastien | 833a6e14ea | ||
bastien | 765421539c | ||
bastien | 8cf0bbe926 | ||
bastien | 419fb63c59 | ||
bastien | 6fb066cd3e | ||
bastien | 985bf14e38 | ||
bastien | fa5483a93f | ||
bastien | 3538fccab3 | ||
bastien | ee321257e9 | ||
bastien | 52b4b24775 | ||
bastien | 36ebad4327 | ||
bastien | 027ecf3dd3 | ||
bastien | 887e961c9d | ||
bastien | 3a9d36c5ab | ||
bastien | 39eab4d922 | ||
bastien | 0a6fd6c27b | ||
bastien | efdc620de8 | ||
bastien | 96ca9548c1 | ||
bastien | aedd4ddeba | ||
bastien | 06502e20ab | ||
bastien | ffb726b440 | ||
bastien | 41d94f1f77 | ||
bastien | f754361953 | ||
bastien | 338d3b0db8 | ||
bastien | af49e65f10 | ||
bastien | cb8275c68b | ||
bastien | e3d2623f0b | ||
bastien | c2e5086b1a | ||
bastien | 86b33f56a4 | ||
bastien | 629a1111e6 | ||
bastien | 10bc93d900 | ||
bastien | 036065003b | ||
bastien | e1d21acaeb | ||
bastien | 7a26e0a39c | ||
bastien | 00209a7dad | ||
bastien | bd21c0ffb9 | ||
bastien | 8d96e0c750 | ||
bastien | 4061c551c1 | ||
bastien | d56ccb25b3 | ||
bastien | eae7086bf7 | ||
bastien | d55bac8437 | ||
bastien | 0e058d5d22 | ||
bastien | 3659492efe | ||
bastien | d6043d2150 | ||
bastien | 134791e82a | ||
bastien | 1facc39c1b | ||
bastien | f70377d2e5 | ||
bastien | 4c65b12093 | ||
bastien | 6e31f5c076 | ||
bastien | f981960301 | ||
bastien | 00c13cb84a | ||
bastien | dfb10e8ce0 | ||
bastien | f9a3a73ee0 | ||
bastien | c65291cbca | ||
bastien | 121fec1bb3 | ||
bastien | 93e97c85c6 | ||
bastien | f53e474650 | ||
bastien | f70782c9bf | ||
bastien | 34bdbe470f | ||
bastien | 4f33cf72e2 | ||
bastien | 7d8dcc1f54 | ||
bastien | a8e52c3250 | ||
bastien | ea6e3d3e7f | ||
bastien | e9dc3ac9ec | ||
bastien | 7a91ff20a6 | ||
bastien | a5b5b22603 | ||
bastien | d8246336db | ||
bastien | c80a99973d | ||
bastien | 2f50cb43d0 | ||
bastien | 307804a2d3 | ||
bastien | def03efa71 | ||
bastien | 426a70fc71 | ||
bastien | 12bf254256 | ||
bastien | e8f29905ba | ||
bastien | 88a1c65aef |
141
README-ENG.md
Normal file
141
README-ENG.md
Normal file
|
@ -0,0 +1,141 @@
|
|||
## Table of Contents
|
||||
|
||||
- [Why VimsCode](#why-vimscode)
|
||||
- [About](#about)
|
||||
- [Quick Start](#quick-start)
|
||||
- [Documentation](#documentation)
|
||||
- [Update](#update)
|
||||
- [Troubleshooting](#troubleshooting)
|
||||
|
||||
## Why VimsCode
|
||||
|
||||
### VimsCode, it's beautiful :
|
||||
|
||||
To write or edit computer code, program an arduino etc... we use IDE (integrated development environment)
|
||||
Many very complete graphic software exist to do that like VScode from microsoft or Atom.
|
||||
|
||||
So why not use them ?
|
||||
|
||||
**drawbacks :**
|
||||
|
||||
* They are resource intensive, lots of RAM (~1.3 GB, about 18,000 times more than the Apollo 11 mission that sent the first men to the moon :/ )
|
||||
* They are quite difficult to debug because of the large abstraction layers that make them up
|
||||
* They don't work without a graphical system (through ssh, on a server or a Raspberry Pi)
|
||||
* It is sometimes difficult to make them do something simple if it was not planned by the developers
|
||||
* Its frequent updates sometimes impose changes in working habits (new interfaces, new default configuration, new paths etc.)
|
||||
|
||||
So which solution? We suggest you use one of the historical command line text editors (vi, Vim) to make your own IDE :)
|
||||
|
||||
**Advantages :**
|
||||
|
||||
* Lightweight, ~15Kb which is 4.6 x less than Apollo 11 and 83000 times less than VSCODE!!!
|
||||
* Configurable, you can configure everything in text files from already shared and popular configurations
|
||||
* Stable, it only evolves without breaking the ergonomic continuity (always the same commands and shortcuts since 1991 for vim and 1976 for vi :) same for the configurations which remain valid since the beginning...)
|
||||
* Usable through SSH on servers or very light computers (Raspberry Pi, etc.)
|
||||
* Rock solid, crashes must exist, but I've never even heard of them
|
||||
|
||||
## About
|
||||
|
||||
VimsCode is an IDE with vim for beginner or expert :
|
||||
|
||||
* VimsCode use arduino-cli, idf-esp and platform.io-cli for remplace VScode only in terminal
|
||||
* Very easy to use
|
||||
* Very easy to install
|
||||
|
||||
![Example-picture](/pictures/image.png)
|
||||
|
||||
## Quick Start
|
||||
|
||||
### Introduction :
|
||||
|
||||
Installation requires :
|
||||
```
|
||||
sudo apt update
|
||||
sudo apt install git elinks
|
||||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
||||
```
|
||||
|
||||
### Set up VimsCode :
|
||||
|
||||
|
||||
After clone don't forgot to rename "vimrc-conf" -> ".vimrc" :
|
||||
|
||||
```
|
||||
cd Vimscode
|
||||
chmod +x install.sh
|
||||
./install.sh
|
||||
```
|
||||
|
||||
### Alias :
|
||||
|
||||
When you load vim, you have 1 error with vim-colorschemes, its totally normal, because your vimrc use theme but you dont have load this theme.
|
||||
|
||||
Edit your bashrc or zshrc and copie/paste this ligne at the end :
|
||||
```
|
||||
vim ~/.zshrc or vim ~/.bashrc
|
||||
alias vimscode="~/.vim/vimscode.sh"
|
||||
```
|
||||
|
||||
### Install Plugins :
|
||||
|
||||
Launch `vim` and run `:PluginInstall`
|
||||
|
||||
## Documentation
|
||||
|
||||
### Short-cute VimsCode :
|
||||
|
||||
This short-cute are totally switchable in .vimrc.
|
||||
|
||||
```
|
||||
"F2" Shows a vim note
|
||||
"F3" Shows the tree structure
|
||||
"F4" Shows the history of changes made
|
||||
"F5" Shows a terminal at the bottom
|
||||
"F6" Allows scrolling in the terminal
|
||||
"F7" Brings up a help site for vim and terminal
|
||||
"F8" created a new vim tab
|
||||
"F9" navigate between vim tabs
|
||||
"c-s" vertical split of the window
|
||||
"F10" "F10" close vimscode
|
||||
```
|
||||
|
||||
* Shortcut in visual mode, when you highlight a word, do a duckduckgo search, on press "g".
|
||||
* You can change the hight of window with mouse.
|
||||
|
||||
Finally you can run vimscode with this alias :
|
||||
```
|
||||
vimscode -e "file" # for ESP ide
|
||||
vimscode -a "file" # for Arduino ide
|
||||
vimscode -p "file" # for platform.io ide
|
||||
vimscode # help vimscode
|
||||
```
|
||||
|
||||
If you want change theme of vimscode, you can just change this line :
|
||||
```
|
||||
colorscheme space-vim-dark
|
||||
colorscheme cool
|
||||
colorscheme elda
|
||||
colorscheme space-vim-dark
|
||||
colorscheme black_angus
|
||||
```
|
||||
And other theme : [Theme](https://github.com/flazz/vim-colorschemes/tree/master/colors)
|
||||
|
||||
|
||||
### More Doc :
|
||||
|
||||
[Documentation](https://projets.cohabit.fr/redmine/projects/accueil/wiki/Documentation_IDE_Vim)
|
||||
|
||||
## Update
|
||||
|
||||
For update it's very simple you juste have to pull and do some mv:
|
||||
|
||||
```
|
||||
cd ~/.vim
|
||||
chmod +x update-vimscode
|
||||
./update-vimscode
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
For troubleshooting and common problems see [TROUBLESHOOTING](https://git.cohabit.fr/bastien/VimsCode/wiki/Troubleshooting).
|
||||
|
122
README.md
122
README.md
|
@ -1,36 +1,116 @@
|
|||
## Table of Contents
|
||||
<div align="center">
|
||||
|
||||
- [About](#about)
|
||||
- [Quick Start](#quick-start)
|
||||
- [Docs](#docs)
|
||||
![Vimscode](https://git.cohabit.fr/bastien/VimsCode/raw/branch/master/pictures/vimscode.jpg)
|
||||
|
||||
## About
|
||||
</div>
|
||||
|
||||
VimsCode is an IDE with vim for beginner or expert
|
||||
## Sommaire
|
||||
|
||||
* VimsCode use arduino-cli, idf-esp and platform.io-cli for remplace VScode only in terminal
|
||||
* Very easy to use
|
||||
* Very easy to install
|
||||
- [Pourquoi VimsCode](#pourquoi-vimscode)
|
||||
- [A propos de Vimscode](#a-propos-de-vimscode)
|
||||
- [Installation](#installation)
|
||||
- [Documentation](#documentation)
|
||||
- [Mise à jour](#mise-à-jour)
|
||||
|
||||
## Pourquoi VimsCode
|
||||
|
||||
### VimsCode, C'est magnifique :
|
||||
|
||||
Pour écrire ou éditer du code informatique, programmer un arduino etc... on utilise des IDE (environnement de développement intégré)
|
||||
Bien des logiciels graphiques très complets existent pour faire ça comme VScode de microsoft ou Atom.
|
||||
|
||||
Alors pourquoi pas les utiliser ? Ils ont des inconvénients
|
||||
|
||||
**Inconvénients :**
|
||||
|
||||
* Ils sont gourmands en ressources, beaucoup de RAM (~1,3 Go, soit environ 18 000 fois plus que la mission Apollo 11 qui a envoyé les premiers hommes sur la lune :/ )
|
||||
* Ils ont assez difficiles à déboguer du fait des grandes couches d'abstraction qui les composent
|
||||
* Ils ne fonctionnent pas sans système graphique (à travers ssh, sur un serveur ou une Raspberry Pi)
|
||||
* Il est difficile parfois de leur faire faire une chose simple si elle n'a pas été prévue par ses développeurs
|
||||
* Ses mises à jour fréquentes imposent parfois des changements dans les habitudes de travail (nouvelles interfaces, nouvelle configuration par défaut, nouveaux chemins etc.)
|
||||
|
||||
Alors quelle solution ? Nous vous proposons d'utiliser un des éditeurs de texte historiques en ligne de commande (vi, Vim) pour vous faire votre propre IDE :)
|
||||
|
||||
**Advantages :**
|
||||
|
||||
|
||||
* Léger, ~15Ko soit 4,6 x moins qu'Apollo 11 et 83000 fois moins que VSCODE!!!
|
||||
* Configurable, on peut tout configurer dans des fichiers textes à partir de configurations déjà très partagées et répendues
|
||||
* Stabilité, il ne fait qu'évoluer sans rompre la continuité ergonomique (toujours les mêmes commandes et raccourcis depuis 1991 pour vim et 1976 pour vi :) de même pour les configurations qui restent valides depuis le début...)
|
||||
* Utilisable à travers SSH sur des serveurs ou des ordis très légers (Raspberry Pi, etc.)
|
||||
* Rock solide, les plantages doivent exister, mais je n'en ai jamais même entendu parler
|
||||
|
||||
## A propos de VimsCode
|
||||
|
||||
VimsCode est un IDE avec vim pour les débutant ou les expert :
|
||||
|
||||
* VimsCode utilise arduino-cli, idf-esp et platform.io-cli pour remplacer VScode uniquement dans le terminal
|
||||
* Très facile à utliser
|
||||
* Très facile à installer
|
||||
|
||||
![Example-picture](/pictures/image.png)
|
||||
|
||||
## Quick Start
|
||||
## Installation
|
||||
|
||||
1. Introduction:
|
||||
|
||||
Installation requires git, wget, flex, bison, gperf, python3, python3-venv, cmake, ninja-build, ccache, libffi-dev, libssl-dev, dfu-util, libusb-1.0-0]
|
||||
and triggers [`git clone`] for each configured repository to ~/.vim/ by defautl.
|
||||
|
||||
2. Set up VimsCode
|
||||
### Introduction :
|
||||
|
||||
Prérequis :
|
||||
```
|
||||
git clone https://git.cohabit.fr/bastien/VimsCode.git
|
||||
cd VimsCode
|
||||
```
|
||||
|
||||
After clone don't forgot to rename "vimrc-conf" -> ".vimrc" and "/vim-conf" -> "/vim"
|
||||
### Installation de VimsCode :
|
||||
|
||||
3. Install Plugins:
|
||||
Après le clone, lancer juste le script d'installation :
|
||||
|
||||
Launch `vim` and run `:PluginInstall`
|
||||
```
|
||||
./vimscode.sh -install
|
||||
```
|
||||
Une fois le script terminé, vous n'avez plus qu'à lancer vim.
|
||||
|
||||
## Docs
|
||||
## Documentation
|
||||
|
||||
https://projets.cohabit.fr/redmine/projects/accueil/wiki/Documentation_IDE_Vim
|
||||
### Raccourcis VimsCode :
|
||||
|
||||
Tous les raccourcis VimsCode sont totalement configurable dans le fichier .vimrc dans votre /home :
|
||||
|
||||
```
|
||||
"Ctrl+l" Montre tout les raccourcis VimsCode et quelques raccourcis Vim
|
||||
```
|
||||
|
||||
* Le raccourcis en mode visuel vous permet de faire des chercher internet sur le mot sélection en appuyant sur "g".
|
||||
* Vous pouvez utiliser la souris dans VimsCode, pour changer des éléments ou autres...
|
||||
* Pour revenir en arrière dans la popup des raccourics, il faut utiliser la touche "retour arrière"
|
||||
|
||||
Pour finir vous pouvez lancer VimsCode avec ces alias ou juste si vous préferez, vous pouvez le lancer juste avec vim mais vous n'aurez pas l'interface VimsCode de déclencher :
|
||||
```
|
||||
vimscode -e "fichier" # pour ESP ide
|
||||
vimscode -a "fichier" # pour Arduino ide
|
||||
vimscode -p "fichier" # pour platform.io ide
|
||||
vimscode # aide vimscode
|
||||
vim "fichier" # sans affichage de VimsCode
|
||||
```
|
||||
|
||||
Si vous voulez changer de theme VimsCode, vous pouvez changer cette ligne :
|
||||
```
|
||||
colorscheme space-vim-dark
|
||||
colorscheme cool
|
||||
colorscheme elda
|
||||
colorscheme space-vim-dark
|
||||
colorscheme black_angus
|
||||
```
|
||||
Et pour voir d'autres thèmes : [Theme](https://github.com/flazz/vim-colorschemes/tree/master/colors)
|
||||
|
||||
|
||||
### Plus de documentation :
|
||||
|
||||
[Documentation](https://projets.cohabit.fr/redmine/projects/accueil/wiki/Documentation_IDE_Vim)
|
||||
|
||||
## Mise à jour
|
||||
|
||||
Pour mettre à jour VimsCode, taper simple ces commandes :
|
||||
|
||||
```
|
||||
vimscode -maj
|
||||
```
|
||||
|
|
0
bundle/.gitkeep
Normal file
0
bundle/.gitkeep
Normal file
119
help/En/help-arduino
Normal file
119
help/En/help-arduino
Normal file
|
@ -0,0 +1,119 @@
|
|||
Short-cute VimsCode :
|
||||
<F2> launch a vim note
|
||||
<F3> launch the folder tree where you are
|
||||
<F4> launch the change history
|
||||
<F5> launch a terminal at the bottom
|
||||
<F6> scroll through terminal
|
||||
<F7> launch a help site for vim and terminal
|
||||
<F8> created a new vim tab
|
||||
<F9> navigates between vim tabs
|
||||
|
||||
Help for arduino:
|
||||
|
||||
arduino-cli board # Displays the arduino controls
|
||||
attach # Attach a project to a map
|
||||
details # Displays details on the map
|
||||
list # Lists the connected cards
|
||||
listall # Lists all known maps and their FQBN correspondence
|
||||
search # Search the map in the map getionaires
|
||||
|
||||
arduino-cli burn-bootloader # Downloads the bootloader
|
||||
|
||||
arduino-cli cache clean # Clear cache
|
||||
|
||||
arduino-cli compile # Compiles the program on the board
|
||||
|
||||
arduino-cli config # Allows to have the arduino configuration controls
|
||||
add # Adds another value to a setting
|
||||
delete # Deletes a parameter and these sub-parameters
|
||||
dump # Displays current settings
|
||||
init # Creates a project
|
||||
remove # Removes one or more values from a parameter
|
||||
set # Sets a value to a parameter
|
||||
|
||||
arduino-cli core # Allows operations on the arduino heart
|
||||
download # Download one or more hearts and all dependent tools
|
||||
install # Installs one or more cores and all dependent tools
|
||||
list # Displays the list of installed platforms
|
||||
search # Look for a heart in the card manager
|
||||
uninstall # Uninstall one or more cores and all dependent tools
|
||||
update-index # Updates the heart index
|
||||
upgrade # Updates one or more platforms
|
||||
arduino-cli debug # Allows debug
|
||||
|
||||
arduino-cli help # Displays arduino help
|
||||
|
||||
arduino-cli lib # Allows to display the list of apropos library commands
|
||||
deps # Looks at the status of a dependency for a specific library
|
||||
download # Download one or more libraries without installing it
|
||||
examples # Displays library examples
|
||||
install # Install one or more libraries in the system
|
||||
list # Displays installed libraries
|
||||
search # Search for one or more library data
|
||||
uninstall # Uninstall one or more libraries
|
||||
update-index # Updates the library index
|
||||
upgrade # Updates all installed libraries
|
||||
|
||||
arduino-cli monitor # Opens a communication port with card
|
||||
arduino-cli monitor -p /dev/ttyaCM0 --describe # Example
|
||||
--board-options strings # Lists options
|
||||
--config strings or -c # Configure a port
|
||||
--describe # Displays all communication port settings
|
||||
--discovery-timeout "duration" # Lets you choose the time to discover a port
|
||||
--fqbn string or -b # Change the card name
|
||||
--help or -h # Display help
|
||||
--port string or -p # Change port address
|
||||
--protocol string or -l # Change protocol
|
||||
--quiet or -q # Displays only input and output monitor
|
||||
arduino-cli outdated # Lists hearts and libraries that can be updated
|
||||
|
||||
arduino-cli sketch # Create/archive an arduino project
|
||||
archive # Create a project archive
|
||||
new # Create a new project
|
||||
|
||||
arduino-cli update # Updates the index of hearts and libraries
|
||||
|
||||
arduino-cli upgrade # Updates installed cores and libraries
|
||||
|
||||
arduino-cli upload # Download an arduino project
|
||||
|
||||
arduino-cli version # Displays the arduino-cli version
|
||||
|
||||
|
||||
|
||||
|
||||
Valid additional arguments for all commands above:
|
||||
|
||||
--config-file string # Allows you to choose a custom configuration file
|
||||
--format string # Lets you choose the format to output logs
|
||||
--log-file string # Lets you choose where the logs are stored
|
||||
--verbose or -v # Provides more information
|
||||
|
||||
Example of simple use:
|
||||
|
||||
# To connect new indexes download
|
||||
|
||||
arduino-cli core update-index
|
||||
|
||||
# To list all connected boards
|
||||
|
||||
arduino-cli board list
|
||||
|
||||
# To install a core, an example with samd but you can do it with avr (to know how to look at the FQBN of the card)
|
||||
|
||||
arduino-cli core install arduino:samd
|
||||
|
||||
# To see the installed cores
|
||||
|
||||
arduino-cli core list
|
||||
|
||||
# To compile
|
||||
|
||||
arduino-cli compile --fqbn "FQBN of the card" "file name"
|
||||
arduino-cli compile --fqbn arduino:samd:mkr1000 MyFirstSketch # Example
|
||||
|
||||
# To upload
|
||||
|
||||
arduino-cli upload -p/dev/ttyACM0 --fqbn "FQBN of the card" "file name"
|
||||
ttyUSB0
|
||||
|
59
help/En/help-esp32
Normal file
59
help/En/help-esp32
Normal file
|
@ -0,0 +1,59 @@
|
|||
Short-cute VimsCode :
|
||||
<F2> launch a vim note
|
||||
<F3> launch the folder tree where you are
|
||||
<F4> launch the change history
|
||||
<F5> launch a terminal at the bottom
|
||||
<F6> scroll through terminal
|
||||
<F7> launch a help site for vim and terminal
|
||||
<F8> created a new vim tab
|
||||
<F9> navigates between vim tabs
|
||||
|
||||
Help for ESP32 :
|
||||
|
||||
add-dependency # Add dependency to the manifest file.
|
||||
all # Aliases: build. Build the project.
|
||||
app # Build only the app.
|
||||
app-flash # Flash the app only.
|
||||
bootloader # Build only bootloader.
|
||||
bootloader-flash # Flash bootloader only.
|
||||
build-system-targets # Print list of build system targets.
|
||||
clean # Delete build output files from the build directory.
|
||||
compote component delete # Delete specified version of the component from the component registry.
|
||||
compote component upload # Upload component to the component registry.
|
||||
compote component upload-status # Check the component uploading status by the job ID.
|
||||
confserver # Run JSON configuration server.
|
||||
coredump-debug # Create core dump ELF file and run GDB debug session with file.
|
||||
coredump-info # Print crashed task’s registers.
|
||||
create-component # Create a new component.
|
||||
create-manifest # Create manifest for specified component.
|
||||
create-project # Create a new project.
|
||||
create-project-from-example # Create a project from an example.
|
||||
docs # Open web browser with documentation for ESP-IDF.
|
||||
efuse-common-table # Generate C-source for IDF's eFuse fields.
|
||||
efuse-custom-table # Generate C-source for user's eFuse fields.
|
||||
encrypted-app-flash # Flash the encrypted app only.
|
||||
encrypted-flash # Flash the encrypted project.
|
||||
erase-flash # Erase entire flash chip.
|
||||
erase-otadata # Erase otadata partition.
|
||||
flash # Flash the project.
|
||||
fullclean # Delete the entire build directory contents.
|
||||
gdb # Run the GDB.
|
||||
gdbgui # GDB UI in default browser.
|
||||
gdbtui # GDB TUI mode.
|
||||
menuconfig # Run "menuconfig" project configuration tool.
|
||||
monitor # Display serial output.
|
||||
openocd # Run openocd from current path.
|
||||
partition-table # Build only partition table.
|
||||
partition-table-flash # Flash partition table only.
|
||||
post-debug # Utility target to read the output of async debug action and stop them.
|
||||
python-clean # Delete generated Python byte code from the IDF directory.
|
||||
read-otadata # Read otadata partition.
|
||||
reconfigure # Re-run CMake.
|
||||
save-defconfig # Generate a sdkconfig.defaults with options different from the default ones.
|
||||
set-target # Set the chip target to build.
|
||||
show-efuse-table # Print eFuse table.
|
||||
size # Print basic size information about the app.
|
||||
size-components # Print per-component size information.
|
||||
size-files # Print per-source-file size information.
|
||||
uf2 # Generate the UF2 binary with all the binaries included.
|
||||
uf2-app # Generate an UF2 binary for the application only.
|
97
help/En/help-platform.io
Normal file
97
help/En/help-platform.io
Normal file
|
@ -0,0 +1,97 @@
|
|||
Short-cute VimsCode :
|
||||
<F2> launch a vim note
|
||||
<F3> launch the folder tree where you are
|
||||
<F4> launch the change history
|
||||
<F5> launch a terminal at the bottom
|
||||
<F6> scroll through terminal
|
||||
<F7> launch a help site for vim and terminal
|
||||
<F8> created a new vim tab
|
||||
<F9> navigates between vim tabs
|
||||
|
||||
|
||||
Help for Platform.io cli :
|
||||
|
||||
pio access
|
||||
grant # Add the ability of users and teams to have “LEVEL” access to a resource.
|
||||
list # Show all of the resources (packages) a user or a team can access, along with the access level.
|
||||
private # Set a resource to be either privately accessible (restricted access to particular users or team members).
|
||||
public # Set a resource to be either publicly accessible.
|
||||
revoke # Remove the ability of users and teams to have access to a resource.
|
||||
|
||||
pio boards # List pre-configured Embedded Boards.
|
||||
|
||||
pio check # Perform static analysis check on PlatformIO based project.
|
||||
|
||||
pio debug # Prepare PlatformIO project for debugging or launch debug server.
|
||||
|
||||
pio device
|
||||
list # List available devices.
|
||||
monitor # This is a console application that provides a small terminal application.
|
||||
|
||||
pio home # Launch PlatformIO Home Web-server.
|
||||
|
||||
pio org
|
||||
add # Add a user as an owner to an organization.
|
||||
create # Create a new organization.
|
||||
destroy # Destroy an organization and its teams.
|
||||
list # List organizations and their owners.
|
||||
remove # Remove a user from an organization.
|
||||
update # Rename the organization or update the existing details.
|
||||
|
||||
pio pkg
|
||||
exec # Run command from a PlatformIO package.
|
||||
install # Install the project dependencies or custom packages from the PlatformIO Registry or external sources.
|
||||
list # Print to stdout installed packages and their dependencies in a tree structure based on project dependencies declared in “platformio.ini”
|
||||
outdated # Check for outdated project packages and list version information for all dependencies.
|
||||
pack # Create a tarball from a package.
|
||||
publich # Publish a package to the PlatformIO Registry so that it can be installed by name.
|
||||
search # Search the PlatformIO Registry for packages matching the search query.
|
||||
show # Show package information from the PlatformIO Registry.
|
||||
uninstall # Uninstall the project dependencies or custom packages from the PlatformIO Registry or external sources.
|
||||
unpublish # This removes a package version from the registry, deleting its entry and removing the tarball.
|
||||
update # Update the project dependencies, custom packages from the PlatformIO Registry, or external sources.
|
||||
|
||||
pio platform
|
||||
frameworks # List supported Frameworks (SDKs, etc).
|
||||
install # Install Development Platforms and dependent packages.
|
||||
list # List installed Development Platforms.
|
||||
search # Search for development Development Platforms.
|
||||
show # Show details about Development Platforms.
|
||||
uninstall # Uninstall specified Development Platforms.
|
||||
update # Check or update installed Development Platforms.
|
||||
|
||||
pio project
|
||||
config # Show project computed configuration based on “platformio.ini”.
|
||||
init # Initialize a new PlatformIO based project or update existing with new data.
|
||||
metadata # Dump a build metadata intended for IDE extensions/plugins.
|
||||
|
||||
pio remote
|
||||
device list # List Serial Ports on remote machines where PlatformIO Remote Agent is started.
|
||||
device monitor # Connect to Serial Port of remote device and receive or send data in real time.
|
||||
run # Process environments which are defined in “platformio.ini” (Project Configuration File) file remotely.
|
||||
agent list # List active PlatformIO Remote Agent s started using own PlatformIO Account.
|
||||
agent start # Start PlatformIO Remote Agent and work remotely with your devices from anywhere in the world.
|
||||
test # Run remotely tests from PlatformIO based project.
|
||||
update # Check or update installed Development Platforms and global Libraries on the remote machine.
|
||||
|
||||
pio run # Run project targets over environments declared in “platformio.ini” (Project Configuration File).
|
||||
|
||||
pio settings
|
||||
get # Get/List existing settings.
|
||||
set # Set new value for the setting.
|
||||
reset # Reset settings to default.
|
||||
|
||||
pio system
|
||||
completion install # Install tab completion support for: bash, zsh, fish.
|
||||
completion uninstall # Uninstall shell completion files or code for: bash, zsh, fish.
|
||||
info # Display PlatformIO system-wide information.
|
||||
prune # Remove unused data
|
||||
|
||||
pio test # Run project tests on host (local) machine using PlatformIO Unit Testing.
|
||||
|
||||
pio update # Check or upgrade PlatformIO Core to the latest version.
|
||||
|
||||
pio upgrade # Check or update installed PlatformIO Core packages, Development Platforms and global Libraries.
|
||||
|
||||
For more information on the above orders: https://docs.platformio.org/en/latest/core/userguide/index.html#commands
|
||||
|
120
help/Fr/aide-arduino
Normal file
120
help/Fr/aide-arduino
Normal file
|
@ -0,0 +1,120 @@
|
|||
Raccourcis VimsCode :
|
||||
<F2> invoque une note vim
|
||||
<F3> invoque l'arborescence du dossier ou vous vous trouvez
|
||||
<F4> invoque l'historique des modifications effectué
|
||||
<F5> invoque un terminal en bas
|
||||
<F6> permet de scroll dans le terminal
|
||||
<F7> invoque un site d'aide pour vim et terminal
|
||||
<F8> créé un nouvel onglet vim
|
||||
<F9> navigue entre les onglets vim
|
||||
|
||||
Aide pour arduino :
|
||||
|
||||
arduino-cli board # Affiche les commandes de la arduino
|
||||
attach # Attache un projet à une carte
|
||||
details # Affiche des détails sur la carte
|
||||
list # Listes les cartes connectés
|
||||
listall # Listes toutes les cartes connus et leur correspondance FQBN
|
||||
search # Cherche dans la carte dans le getionnaires de carte
|
||||
|
||||
arduino-cli burn-bootloader # Télécharge le bootloader
|
||||
|
||||
arduino-cli cache clean # Efface le cache
|
||||
|
||||
arduino-cli compile # Permet de compiler le programme sur la carte
|
||||
|
||||
arduino-cli config # Permet d'avoir les commandes de configurations arduino
|
||||
add # Ajoute une autre valeur à un réglage
|
||||
delete # Supprime un paramètre et ces sous paramètres
|
||||
dump # Affiche les paramètres actuels
|
||||
init # Crée un projet
|
||||
remove # Supprime une ou plusieurs valeurs d'un paramètres
|
||||
set # Définit une valeur à un paramètre
|
||||
|
||||
arduino-cli core # Permet de faire une opérations sur le coeur arduino
|
||||
download # Télécharge un ou plusieurs coeurs et touts les outils dépendants
|
||||
install # Installe un ou plusieurs coeurs et touts les outils dépendants
|
||||
list # Affiche la liste des platformes installés
|
||||
search # Cherche un coeur dans la gestionnaire de carte
|
||||
uninstall # Désinstalle un ou plusieurs coeurs et touts les outils dépendants
|
||||
update-index # Met à jour l'index des coeurs
|
||||
upgrade # Met à jour un ou plusieurs platformes
|
||||
|
||||
arduino-cli debug # Permet de debug
|
||||
|
||||
arduino-cli help # Affiche l'aide arduino
|
||||
|
||||
arduino-cli lib # Permet d'afficher la liste des commandes apropos des librairies
|
||||
deps # Regarde le status d'une dépendance pour une librairies spécifique
|
||||
download # Télécharge une ou plusieurs librairies sans l'installer
|
||||
examples # Affiche les exemples de librairies
|
||||
install # Installe une ou plusieurs librairies dans le système
|
||||
list # Affiche les librairies installés
|
||||
search # Recherche une ou plusieurs données de librairies
|
||||
uninstall # Désinstalle une ou plusieurs librairies
|
||||
update-index # Met à jour l'index des librairies
|
||||
upgrade # Met à jour toutes les librairies installés
|
||||
|
||||
arduino-cli monitor # Permet d'ouvrir un port de communication avec carte
|
||||
arduino-cli monitor -p /dev/ttyaCM0 --describe # Exemple
|
||||
--board-options strings # Listes les options
|
||||
--config strings ou -c # Configure un port
|
||||
--describe # Affiche tous les paramètres du port de communication
|
||||
--discovery-timeout "durée" # Permet de choisir le temps pour découvrir un port
|
||||
--fqbn string ou -b # Permet de changer le nom de la carte
|
||||
--help ou -h # Invoque l'aide
|
||||
--port string ou -p # Permet de changer l'adresse du port
|
||||
--protocol string ou -l # Permet de changer le protocol
|
||||
--quiet ou -q # Affiche seulement le moniteur d'entré et de sortie
|
||||
|
||||
arduino-cli outdated # Liste les coeurs et librairies qui peuvent être mis à jour
|
||||
|
||||
arduino-cli sketch # Permet de créer/archiver un projet arduino
|
||||
archive # Créer une archive du projet
|
||||
new # Créer un nouveau projet
|
||||
|
||||
arduino-cli update # Met à jour l'index des coeurs et librairies
|
||||
|
||||
arduino-cli upgrade # Met à jour les coeurs et librairies installés
|
||||
|
||||
arduino-cli upload # Télécharge un projet arduino
|
||||
|
||||
arduino-cli version # Affiche la version de arduino-cli
|
||||
|
||||
|
||||
|
||||
|
||||
arguments supplémentaires valide pour toutes les commandes ci-dessus :
|
||||
|
||||
--config-file string # Permet de choisir un fichier de configuration personnalisé
|
||||
--format string # Permet de choisir le format de sortir des logs
|
||||
--log-file string # Permet de choisir à quel endroit les logs sont stockés
|
||||
--verbose ou -v # Permet de donner plus d'informations
|
||||
|
||||
Exemple d'utilisatio simple :
|
||||
|
||||
# Pour connecter des nouveaux index télécharger
|
||||
|
||||
arduino-cli core update-index
|
||||
|
||||
# Pour lister toutes les cartes connectées
|
||||
|
||||
arduino-cli board list
|
||||
|
||||
# Pour installer un coeur, un exemple avec samd mais on peut le faire avec avr (pour savoir regarder le FQBN de la carte)
|
||||
|
||||
arduino-cli core install arduino:samd
|
||||
|
||||
# Pour voir les coeurs installés
|
||||
|
||||
arduino-cli core list
|
||||
|
||||
# Pour compiler
|
||||
|
||||
arduino-cli compile --fqbn "FQBN de la carte" "nom du fichier"
|
||||
arduino-cli compile --fqbn arduino:samd:mkr1000 MyFirstSketch # Exemple
|
||||
|
||||
# Pour téléverser
|
||||
|
||||
arduino-cli upload -p /dev/ttyACM0 --fqbn "FQBN de la carte" "nom du fichier"
|
||||
ttyUSB0
|
60
help/Fr/aide-esp32
Normal file
60
help/Fr/aide-esp32
Normal file
|
@ -0,0 +1,60 @@
|
|||
Raccourcis VimsCode :
|
||||
<F2> Invoque une note vim
|
||||
<F3> Invoque l'arborescence du dossier ou vous vous trouvez
|
||||
<F4> Invoque l'historique des modifications effectué
|
||||
<F5> Invoque un terminal en bas
|
||||
<F6> Permet de scroll dans le terminal
|
||||
<F7> Invoque un site d'aide pour vim et terminal
|
||||
<F8> Créer un nouvel onglet vim
|
||||
<F9> Navigue entre les onglets vim
|
||||
|
||||
|
||||
Aide pour ESP32 :
|
||||
|
||||
add-dependency # Ajout de dépendance.
|
||||
all # Alias de build, construit le projet.
|
||||
app # Construit uniquement l'app.
|
||||
app-flash # Flash uniquement l'app.
|
||||
bootloader # Construit uniquement le bootloader.
|
||||
bootloader-flash # Flash uniquement le bootloader.
|
||||
build-system-targets # Affiche la liste des cibles systèmes.
|
||||
clean # Supprime les fichiers de sortie de la compilation.
|
||||
compote component delete # Supprime la version spécifié du composant du registre des composants.
|
||||
compote component upload # Télécharge un composant dans le registre de composant.
|
||||
compote component upload-status # Vérifie les composants de l'état du téléchargement par l'ID du travail.
|
||||
confserver # Exécute la configuration JSON du serveur.
|
||||
coredump-debug # Créer le fichier ELF de vidage du noyau et éxecute la session de débogage GDB avec ce fichier.
|
||||
coredump-info # Affiche le registre des erreurs.
|
||||
create-component # Créer un nouveau composant.
|
||||
create-manifest # Créer un manifeste pour spécifié les composants.
|
||||
create-project # Créer un nouveau projet.
|
||||
create-project-from-example # Créer un nouveau projet exemple.
|
||||
docs # Ouvre un navigateur avec la documentation.
|
||||
efuse-common-table # Génére un c-source pour le champ de l'idf efuse.
|
||||
efuse-custom-table # Génére un c-source pour le champ de l'utilisateur efuse.
|
||||
encrypted-app-flash # Flash uniquement l'app chiffré.
|
||||
encrypted-flash # Flash uniquement le projet chiffré.
|
||||
erase-flash # Ecrase toute la puce flash.
|
||||
erase-otadata # Ecrase les données totales de la partition.
|
||||
flash # Flash le projet.
|
||||
fullclean # Supprime l'intégralité du contenu du dossier de construction.
|
||||
gdb # Exécute GDB.
|
||||
gdbgui # Interface utilisateur GDB dans le navigateur par defaut.
|
||||
gdbtui # Mode TUI GDB.
|
||||
menuconfig # Exécute le "menuconfig" de la configuration d'outil du projet.
|
||||
monitor # Affiche la sortie sérial.
|
||||
openocd # Exécute openocd depuis le chemin courant.
|
||||
partition-table # Construit uniquement une table de partition.
|
||||
partition-table-flash # Flash uniquement la table de partition.
|
||||
post-debug # Cible l'utilitaire pour lire la sortie de l'action de débogage asynchrone et les arrêter.
|
||||
python-clean # Supprime le code d'octet python généré du dossier IDF.
|
||||
read-otadata # Lire les données totales de la partition.
|
||||
reconfigure # Ré-exécute CMake
|
||||
save-defconfig # Génére sdkconfig.defaults avec une option différente par defaut.
|
||||
set-target # Cible l'ensemble de la construction de la carte.
|
||||
show-efuse-table # Affiche la table efuse.
|
||||
size # Affiche les informations de taille de base apropos de l'app.
|
||||
size-components # Affiche les informations de tailles par composant.
|
||||
size-files # Affiche les informations de tailles par fichier source.
|
||||
uf2 # Génére le binaire UF2 avec tous les binaires inclus.
|
||||
uf2-app # Génére le binaire UF2 pour l'app uniquement.
|
87
help/Fr/aide-platform.io
Normal file
87
help/Fr/aide-platform.io
Normal file
|
@ -0,0 +1,87 @@
|
|||
Raccourcis VimsCode :
|
||||
<F2> Invoque une note vim
|
||||
<F3> Invoque l'arborescence du dossier ou vous vous trouvez
|
||||
<F4> Invoque l'historique des modifications effectué
|
||||
<F5> Invoque un terminal en bas
|
||||
<F6> Permet de scroll dans le terminal
|
||||
<F7> Invoque un site d'aide pour vim et terminal
|
||||
<F8> Créer un nouvel onglet vim
|
||||
<F9> Navigue entre les onglets vim
|
||||
|
||||
|
||||
Aide pour Platfor.io cli :
|
||||
|
||||
pio access
|
||||
pio access grant # Ajouter la capacité des utilisateurs et des équipes à avoir accès « NIVEAU » à une ressource.
|
||||
pio access list # Montrez à l'ensemble des ressources (ensembles) à un utilisateur ou à une équipe, ainsi qu'à l'accès niveau.
|
||||
pio access private # Fixer une ressource pour être accessible au secteur privé.
|
||||
pio access public # Mettre en place une ressource pour être accessible au public.
|
||||
pio access revoke # Supprimer la capacité des utilisateurs et des équipes à avoir accès à une ressource.
|
||||
|
||||
|
||||
pio boards # Liste des tableaux intégrés préconfigurés.
|
||||
|
||||
pio check # Effectuez un contrôle d'analyse statique sur le projet basé sur PlatformIO.
|
||||
|
||||
pio debug # Préparer le projet PlatformIO pour le débogage ou le lancement du serveur de débogage.
|
||||
|
||||
pio device
|
||||
pio device list # Lister les appareils disponibles.
|
||||
pio device monitor # Il s'agit d'une application de console qui fournit un petit terminal application.
|
||||
|
||||
pio home # Lancement du serveur Web à domicile.
|
||||
|
||||
pio org
|
||||
pio org add # Ajouter un utilisateur en tant que propriétaire à une organisation.
|
||||
pio org create # Créer une nouvelle organisation.
|
||||
pio org destroy # Détruire une organisation et ses équipes.
|
||||
pio org list # Énumérer les organisations et leurs propriétaires.
|
||||
pio org remove # Supprimez un utilisateur d'une organisation.
|
||||
pio org update # Renommer l'organisation ou mettre à jour les détails existants.
|
||||
|
||||
pio pkg
|
||||
pio pkg exec # Exécutez la commande à partir d'un paquet PlatformIO.
|
||||
pio pkg install # Installer les dépendances du projet ou les paquets personnalisés du registre PlatformIO ou sources extérieures.
|
||||
pio pkg list # Imprimer sur les colis installés en stdout et leurs dépendances.
|
||||
pio pkg outdated # Vérifie les paquets de projets périmés et liste les informations relatives à la version pour les dépendances.
|
||||
pio pkg pack # Créer une boule de tar à partir d'un paquet.
|
||||
pio pkg publish # Publier un paquet dans le registre PlatformIO afin qu'il puisse être installé par nom.
|
||||
pio pkg search # Rechercher le registre PlatformIO pour trouver des paquets correspondant à la requête de recherche.
|
||||
pio pkg show # Afficher les informations sur le paquet provenant du registre PlatformIO.
|
||||
pio pkg uninstall # Désinstaller les dépendances du projet .
|
||||
pio pkg unpublish # Il enlève une version de paquet du registre, en supprimant sa saisie et en supprimant la version. boule de tar.
|
||||
pio pkg update # Mettre à jour les dépendances du projet.
|
||||
|
||||
pio project
|
||||
pio project config # Montrer la configuration calculée sur le projet basé sur "platformio.ini".
|
||||
pio project init # Initialiser un nouveau projet basé sur PlatformIO ou mettre à jour les données existantes avec de nouvelles données.
|
||||
pio project metadata # Débosser des métadonnées de construction destinées aux extensions/plugins IDE.
|
||||
|
||||
pio remote
|
||||
PlatformIO Remote Agent # Liste les agents à distance actifs de PlatformIO ont commencé à utiliser leur propre compte PlatformIO.
|
||||
pio remote device list # Liste des ports de série à distance machines où PlatformIO Remote Agent est mis en marche.
|
||||
pio remote device monitor # Se connecter au port série de dispositifs distants et recevoir ou envoyer des données en temps réel.
|
||||
pio remote run # Environnements de processus qui sont définis dans le fichier « plate-forme.ini ».
|
||||
pio remote test # Exécuter des tests à distance du projet basé sur PlatformIO.
|
||||
pio remote update # Vérifier ou mettre à jour les plates-formes de développement installées et les plates-formes mondiales Bibliothèques sur la machine distante.
|
||||
|
||||
pio run # Exécuter les objectifs du projet sur les environnements déclarés dans « plate-formeio.ini ».
|
||||
|
||||
pio settings
|
||||
pio settings get # Obtenir/liste des paramètres existants
|
||||
pio settings set # Fixer une nouvelle valeur pour le réglage
|
||||
pio settings reset # Réinitialiser les paramètres par défaut
|
||||
|
||||
pio system
|
||||
pio system completion install # Installer l'autocomplétion pour: bash, zsh, fish.
|
||||
pio system completion uninstall # Désintaller l'autocompletion pour : bash, zsh, fish.
|
||||
pio system info # Display PlatformIO Informations à l'échelle du système.
|
||||
pio system prune # Supprimer les données non utilisées.
|
||||
|
||||
|
||||
pio test # Exécuter des tests de projet sur une machine hôte (locale) à l'aide de PlatformIO Unit Testing.
|
||||
|
||||
pio upgrade # Vérifiez ou mettez à niveau PlatformIO Core vers la dernière version.
|
||||
|
||||
Pour avoir plus d'information sur les commandes ci-dessus : https://docs.platformio.org/en/latest/core/userguide/index.html#commands
|
||||
|
21
help/help-vimscode
Normal file
21
help/help-vimscode
Normal file
|
@ -0,0 +1,21 @@
|
|||
VIM - Vi IMproved 8.2 - VIMSCODE - IDE Vim 1.0
|
||||
|
||||
VimsCode Arguments :
|
||||
|
||||
-a Load VimsCode with arduino help
|
||||
-e Load VimsCode with esp32 help
|
||||
-p Load VimsCode with platform.io help
|
||||
|
||||
VimsCode shortcuts :
|
||||
|
||||
<F2> Shows a vim note
|
||||
<F3> Shows the tree structure
|
||||
<F4> Shows the history of changes made
|
||||
<F5> Shows a terminal at the bottom
|
||||
<F6> Allows scrolling in the terminal
|
||||
<F7> Brings up a help site for vim and terminal
|
||||
<F8> created a new vim tab
|
||||
<F9> navigate between vim tabs
|
||||
<c-s> vertical split of the window
|
||||
<F10> <F10> close vimscode
|
||||
|
|
@ -5,5 +5,5 @@ mv arduino-cli /usr/bin
|
|||
|
||||
# autocomplétion arduino-cli
|
||||
mkdir /etc/bash_completion.d/ or mkdir ~/completion_zsh/
|
||||
iadd fpath=($HOME/completion_zsh $fpath) at the beginning of your ~/.zshrc file # only if you use zsh
|
||||
add fpath=($HOME/completion_zsh $fpath) at the beginning of your ~/.zshrc file # only if you use zsh
|
||||
mv arduino-cli.sh /etc/bash_completion.d/ or mv _arduino-cli ~/completion_zsh/
|
||||
|
|
BIN
pictures/vimscode.jpg
Normal file
BIN
pictures/vimscode.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 91 KiB |
|
@ -1 +0,0 @@
|
|||
Subproject commit b255382d6242d7ea3877bf059d2934125e0c4d95
|
|
@ -1 +0,0 @@
|
|||
Subproject commit d866f31a6b1cfc725dd015293e0a275a6ae9beb0
|
|
@ -1 +0,0 @@
|
|||
Subproject commit dc71692255b62d1f67dc55c8e51ab1aa467b1d46
|
|
@ -1 +0,0 @@
|
|||
Subproject commit fc85a6f07c2cd694be93496ffad75be126240068
|
|
@ -1 +0,0 @@
|
|||
Subproject commit b6b5ffe31a195a3077338d7a506b905e4a51590f
|
|
@ -1 +0,0 @@
|
|||
Subproject commit f0093ae12a9115498f887199809a6114659fc858
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 485f01efde4e22cb1ce547b9e8c9238f36566f21
|
|
@ -1 +0,0 @@
|
|||
Subproject commit fd8f122cef604330c96a6a6e434682dbdfb878c9
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 09f1bd0e468584e7770986a1a089e1a9b6bf3235
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 075b7478777e694fbac330ee34a74590dad0fee1
|
|
@ -1 +0,0 @@
|
|||
Subproject commit bc8a81d3592dab86334f27d1d43c080ebf680d42
|
|
@ -1,122 +0,0 @@
|
|||
Raccourcis VimsCode :
|
||||
<F2> invoque une note vim
|
||||
<F3> invoque l'arborescence du dossier ou vous vous trouvez
|
||||
<F4> invoque l'historique des modifications effectué
|
||||
<F5> invoque un terminal en bas
|
||||
<F6> permet de scroll dans le terminal
|
||||
<F7> invoque un site d'aide pour vim et terminal
|
||||
<F8> créé un nouvel onglet vim
|
||||
<F9> navigue entre les onglets vim
|
||||
|
||||
Aide pour arduino :
|
||||
|
||||
arduino-cli board # Affiche les commandes de la arduino
|
||||
attach # Attache un projet à une carte
|
||||
details # Affiche des détails sur la carte
|
||||
list # Listes les cartes connectés
|
||||
listall # Listes toutes les cartes connus et leur correspondance FQBN
|
||||
search # Cherche dans la carte dans le getionnaires de carte
|
||||
|
||||
arduino-cli burn-bootloader # Télécharge le bootloader
|
||||
|
||||
arduino-cli cache clean # Efface le cache
|
||||
|
||||
arduino-cli compile # Permet de compiler le programme sur la carte
|
||||
|
||||
arduino-cli config # Permet d'avoir les commandes de configurations arduino
|
||||
add # Ajoute une autre valeur à un réglage
|
||||
delete # Supprime un paramètre et ces sous paramètres
|
||||
dump # Affiche les paramètres actuels
|
||||
init # Crée un projet
|
||||
remove # Supprime une ou plusieurs valeurs d'un paramètres
|
||||
set # Définit une valeur à un paramètre
|
||||
|
||||
arduino-cli core # Permet de faire une opérations sur le coeur arduino
|
||||
download # Télécharge un ou plusieurs coeurs et touts les outils dépendants
|
||||
install # Installe un ou plusieurs coeurs et touts les outils dépendants
|
||||
list # Affiche la liste des platformes installés
|
||||
search # Cherche un coeur dans la gestionnaire de carte
|
||||
uninstall # Désinstalle un ou plusieurs coeurs et touts les outils dépendants
|
||||
update-index # Met à jour l'index des coeurs
|
||||
upgrade # Met à jour un ou plusieurs platformes
|
||||
|
||||
arduino-cli debug # Permet de debug
|
||||
|
||||
arduino-cli help # Affiche l'aide arduino
|
||||
|
||||
arduino-cli lib # Permet d'afficher la liste des commandes apropos des librairies
|
||||
deps # Regarde le status d'une dépendance pour une librairies spécifique
|
||||
download # Télécharge une ou plusieurs librairies sans l'installer
|
||||
examples # Affiche les exemples de librairies
|
||||
install # Installe une ou plusieurs librairies dans le système
|
||||
list # Affiche les librairies installés
|
||||
search # Recherche une ou plusieurs données de librairies
|
||||
uninstall # Désinstalle une ou plusieurs librairies
|
||||
update-index # Met à jour l'index des librairies
|
||||
upgrade # Met à jour toutes les librairies installés
|
||||
|
||||
arduino-cli monitor # Permet d'ouvrir un port de communication avec carte
|
||||
arduino-cli monitor -p /dev/ttyaCM0 --describe # Exemple
|
||||
--board-options strings # Listes les options
|
||||
--config strings ou -c # Configure un port
|
||||
--describe # Affiche tous les paramètres du port de communication
|
||||
--discovery-timeout "durée" # Permet de choisir le temps pour découvrir un port
|
||||
--fqbn string ou -b # Permet de changer le nom de la carte
|
||||
--help ou -h # Invoque l'aide
|
||||
--port string ou -p # Permet de changer l'adresse du port
|
||||
--protocol string ou -l # Permet de changer le protocol
|
||||
--quiet ou -q # Affiche seulement le moniteur d'entré et de sortie
|
||||
|
||||
arduino-cli outdated # Liste les coeurs et librairies qui peuvent être mis à jour
|
||||
|
||||
arduino-cli sketch # Permet de créer/archiver un projet arduino
|
||||
archive # Créer une archive du projet
|
||||
new # Créer un nouveau projet
|
||||
|
||||
arduino-cli update # Met à jour l'index des coeurs et librairies
|
||||
|
||||
arduino-cli upgrade # Met à jour les coeurs et librairies installés
|
||||
|
||||
arduino-cli upload # Télécharge un projet arduino
|
||||
|
||||
arduino-cli version # Affiche la version de arduino-cli
|
||||
|
||||
|
||||
|
||||
|
||||
arguments supplémentaires valide pour toutes les commandes ci-dessus :
|
||||
|
||||
--config-file string # Permet de choisir un fichier de configuration personnalisé
|
||||
--format string # Permet de choisir le format de sortir des logs
|
||||
--log-file string # Permet de choisir à quel endroit les logs sont stockés
|
||||
--verbose ou -v # Permet de donner plus d'informations
|
||||
|
||||
Exemple d'utilisatio simple :
|
||||
|
||||
# Pour connecter des nouveaux index télécharger
|
||||
|
||||
arduino-cli core update-index
|
||||
|
||||
# Pour lister toutes les cartes connectées
|
||||
|
||||
arduino-cli board list
|
||||
|
||||
# Pour installer un coeur, un exemple avec samd mais on peut le faire avec avr (pour savoir regarder le FQBN de la carte)
|
||||
|
||||
arduino-cli core install arduino:samd
|
||||
|
||||
# Pour voir les coeurs installés
|
||||
|
||||
arduino-cli core list
|
||||
|
||||
# Pour compiler
|
||||
|
||||
arduino-cli compile --fqbn "FQBN de la carte" "nom du fichier"
|
||||
arduino-cli compile --fqbn arduino:samd:mkr1000 MyFirstSketch # Exemple
|
||||
|
||||
# Pour téléverser
|
||||
|
||||
arduino-cli upload -p /dev/ttyACM0 --fqbn "FQBN de la carte" "nom du fichier"
|
||||
ttyUSB0
|
||||
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
Raccourcis VimsCode :
|
||||
<F2> invoque une note vim
|
||||
<F3> invoque l'arborescence du dossier ou vous vous trouvez
|
||||
<F4> invoque l'historique des modifications effectué
|
||||
<F5> invoque un terminal en bas
|
||||
<F6> permet de scroll dans le terminal
|
||||
<F7> invoque un site d'aide pour vim et terminal
|
||||
<F8> créé un nouvel onglet vim
|
||||
<F9> navigue entre les onglets vim
|
||||
|
||||
|
||||
Aide pour ESP32 :
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
Raccourcis VimsCode :
|
||||
<F2> invoque une note vim
|
||||
<F3> invoque l'arborescence du dossier ou vous vous trouvez
|
||||
<F4> invoque l'historique des modifications effectué
|
||||
<F5> invoque un terminal en bas
|
||||
<F6> permet de scroll dans le terminal
|
||||
<F7> invoque un site d'aide pour vim et terminal
|
||||
<F8> créé un nouvel onglet vim
|
||||
<F9> navigue entre les onglets vim
|
||||
|
||||
|
||||
Aide pour Platfor.io cli :
|
|
@ -1,13 +0,0 @@
|
|||
#!/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
|
||||
|
||||
if [ "$1" = '-p' ] || [ "$1" = '-platform.io' ] ; then
|
||||
vim -p $2 ~/.vim/help/aide-platform.io
|
||||
fi
|
334
vimrc-conf
334
vimrc-conf
|
@ -5,53 +5,131 @@ set rtp+=~/.vim/bundle/Vundle.vim
|
|||
call vundle#begin()
|
||||
Plugin 'VundleVim/Vundle.vim'
|
||||
|
||||
"Plugins installés depuis Vim Awesome
|
||||
"Plugins installés depuis Vim Awesome avec le gestionnaire Vundle
|
||||
Plugin 'preservim/nerdtree'
|
||||
Plugin 'junegunn/fzf.vim'
|
||||
Plugin 'mbbill/undotree'
|
||||
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'
|
||||
Plugin 'tpope/vim-fugitive'
|
||||
Plugin 'jiangmiao/auto-pairs'
|
||||
Plugin 'tpope/vim-commentary'
|
||||
Plugin 'vim-airline/vim-airline'
|
||||
Plugin 'vim-airline/vim-airline-themes'
|
||||
Plugin 'liuchengxu/vim-which-key'
|
||||
Plugin 'mhinz/vim-startify'
|
||||
Plugin 'junegunn/fzf'
|
||||
Plugin 'junegunn/fzf.vim'
|
||||
Plugin 'romgrk/winteract.vim'
|
||||
Plugin 'kien/rainbow_parentheses.vim'
|
||||
|
||||
call vundle#end() " required
|
||||
filetype plugin indent on " required
|
||||
|
||||
" Active les raccourcis clavier pour fzf
|
||||
nnoremap <C-p> :FZF<CR>
|
||||
nnoremap <S-f> :Rg<CR>
|
||||
nnoremap <S-b> :Buffers<CR>
|
||||
nnoremap <S-m> :Marks<CR>
|
||||
nnoremap <S-t> :Tags<CR>
|
||||
|
||||
"Parametre de vim
|
||||
syntax on
|
||||
set smartindent
|
||||
set shiftround
|
||||
set shiftwidth=2
|
||||
set wildmenu
|
||||
set cursorline
|
||||
set ignorecase
|
||||
set hlsearch
|
||||
set mouse=a
|
||||
set termwinsize=10x150 " Permet de réguler la taille du terminal
|
||||
set expandtab
|
||||
set tabstop=2
|
||||
let mapleader = ";"
|
||||
|
||||
" Configurer Airline
|
||||
set laststatus=2
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:airline_theme='onedark'
|
||||
|
||||
" Stocker le nom d'utilisateur dans une variable
|
||||
let g:username = substitute(system('whoami'), '\n', '', '')
|
||||
|
||||
" Fonction pour mapper les modes
|
||||
function! Mode()
|
||||
let mode = mode()
|
||||
if mode ==# 'n'
|
||||
return 'NORMAL'
|
||||
elseif mode ==# 'i'
|
||||
return 'INSERT'
|
||||
elseif mode ==# 'v'
|
||||
return 'VISUAL'
|
||||
elseif mode ==# "\<C-V>"
|
||||
return 'VISUAL BLOCK'
|
||||
elseif mode ==# 'V'
|
||||
return 'VISUAL LINE'
|
||||
elseif mode ==# 'R'
|
||||
return 'REPLACE'
|
||||
else
|
||||
return mode()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Configurer les sections personnalisées dans la barre d'état
|
||||
let g:airline_section_a = '%<%{Mode()}'
|
||||
let g:airline_section_b = '%#StatusLine#' . g:username . ' | %f'
|
||||
let g:airline_section_c = '%#StatusLineNC#%{strftime("%H:%M")}'
|
||||
|
||||
" Configurer les symboles de séparation
|
||||
let g:airline_left_sep = ''
|
||||
let g:airline_right_sep = ''
|
||||
let g:airline_left_alt_sep = ''
|
||||
let g:airline_right_alt_sep = ''
|
||||
|
||||
" Configurer les couleurs
|
||||
hi StatusLine guifg=#ebdbb2 guibg=#3c3836 gui=NONE ctermfg=180 ctermbg=237 cterm=NONE
|
||||
hi StatusLineNC guifg=#928374 guibg=#3c3836 gui=NONE ctermfg=146 ctermbg=237 cterm=NONE
|
||||
hi User1 guifg=#282828 guibg=#98971a gui=NONE ctermfg=234 ctermbg=142 cterm=NONE
|
||||
hi User2 guifg=#928374 guibg=NONE gui=NONE ctermfg=146 ctermbg=NONE cterm=NONE
|
||||
hi User3 guifg=#d5c4a1 guibg=#3c3836 gui=NONE ctermfg=223 ctermbg=237 cterm=NONE
|
||||
hi User4 guifg=#1d2021 guibg=NONE gui=NONE ctermfg=234 ctermbg=NONE cterm=NONE
|
||||
hi User5 guifg=#689d6a guibg=NONE gui=NONE ctermfg=108 ctermbg=NONE cterm=NONE
|
||||
hi User6 guifg=#fabd2f guibg=NONE gui=NONE ctermfg=214 ctermbg=NONE cterm=NONE
|
||||
|
||||
" Activer auto-pairs
|
||||
let g:AutoPairsFlyMode = 1
|
||||
let g:AutoPairsShortcutBackInsert = '<M-b>'
|
||||
au FileType * let b:AutoPairs = AutoPairsDefine({'(':')', '[':']', '{':'}', '"':'"', "'":"'", '`':'`'})
|
||||
|
||||
"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']
|
||||
"Active ou désactive la surbillance de la recherche
|
||||
nnoremap <leader>n :nohlsearch<CR>
|
||||
|
||||
"Raccourcis Note
|
||||
"Permet la sauvegarde automatique de l'historique...
|
||||
set undofile
|
||||
set undodir=~/.vim/
|
||||
|
||||
"Raccourci vertical split
|
||||
nnoremap <c-a> :vsp<CR>
|
||||
|
||||
"Raccourci Note
|
||||
nmap <F2> :call DevNotes()<CR>
|
||||
|
||||
"Raccourcis NerdTree
|
||||
nnoremap <F3> :NERDTreeFocus<CR>
|
||||
"Raccourci NerdTree
|
||||
nnoremap <F3> :NERDTreeToggle<CR>
|
||||
|
||||
"Raccourcis historique
|
||||
nnoremap <F4> :UndotreeToggle<CR>
|
||||
"Raccourci historique
|
||||
nnoremap <F4> :UndotreeToggle<CR>:wincmd p<CR>
|
||||
|
||||
"Raccourcis terminal
|
||||
nnoremap <F5> :bot term<CR>
|
||||
"Raccourci terminal
|
||||
nnoremap <S-n> :vertical term<CR>
|
||||
nnoremap <F5> :call OpenResizableTerminals(input('Taille du terminal : ', '10'))<CR>
|
||||
tnoremap <F6> <c-w>N
|
||||
|
||||
"Raccourci vers une recherche duckduckgo
|
||||
|
@ -61,16 +139,226 @@ vmap g :<C-U> !firefox "https://duckduckgo.com/?q=<cword>&t=newext&atb=v372-6&ia
|
|||
nmap <F7> :!elinks https://agreugr.eu<CR>
|
||||
|
||||
"Raccourci onglet
|
||||
nmap <F8> :tabnew<CR>
|
||||
nnoremap <F8> :call OpenFileInNewTab()<CR>
|
||||
nmap <F9> :tabnext<CR>
|
||||
|
||||
nnoremap <F10> :call SaveAndQuit()<CR>
|
||||
|
||||
"Raccourci plugin installer
|
||||
nmap œ :PluginList<CR>
|
||||
nnoremap ² :call ClosePluginList()<CR>
|
||||
|
||||
"Raccourci au lancement de vim
|
||||
au VimEnter *.cpp :NERDTreeToggle
|
||||
au VimEnter *.cpp :call OpenResizableTerminals(input('Taille du terminal : ', '10'))
|
||||
|
||||
au VimEnter *.cpp :NERDTreeFocus " Lance au début l'arborescence / load tree at the beginning
|
||||
au VimEnter *.cpp :bot term " Lance au début un terminal en bas / load terminal at the beginning
|
||||
au VimEnter *.ino :NERDTreeToggle
|
||||
au VimEnter *.ino :call OpenResizableTerminals(input('Taille du terminal : ', '10'))
|
||||
|
||||
" Parametre des couleurs pour les parentheses...
|
||||
let g:rbpt_colorpairs = [
|
||||
\ ['brown', 'RoyalBlue3'],
|
||||
\ ['Darkblue', 'SeaGreen3'],
|
||||
\ ['darkgray', 'DarkOrchid3'],
|
||||
\ ['darkgreen', 'firebrick3'],
|
||||
\ ['darkcyan', 'RoyalBlue3'],
|
||||
\ ['darkred', 'SeaGreen3'],
|
||||
\ ['darkmagenta', 'DarkOrchid3'],
|
||||
\ ['brown', 'firebrick3'],
|
||||
\ ['gray', 'RoyalBlue3'],
|
||||
\ ['black', 'SeaGreen3'],
|
||||
\ ['darkmagenta', 'DarkOrchid3'],
|
||||
\ ['Darkblue', 'firebrick3'],
|
||||
\ ['darkgreen', 'RoyalBlue3'],
|
||||
\ ['darkcyan', 'SeaGreen3'],
|
||||
\ ['darkred', 'DarkOrchid3'],
|
||||
\ ['red', 'firebrick3'],
|
||||
\ ]
|
||||
|
||||
let g:rbpt_max = 16
|
||||
let g:rbpt_loadcmd_toggle = 0
|
||||
|
||||
au VimEnter * RainbowParenthesesToggle
|
||||
au Syntax * RainbowParenthesesLoadRound
|
||||
au Syntax * RainbowParenthesesLoadSquare
|
||||
au Syntax * RainbowParenthesesLoadBraces
|
||||
|
||||
" Exécuter la commande :PluginUpdate en arrière-plan chaque fois que Vim est ouvert
|
||||
au VimEnter * silent! execute ':PluginUpdate | redraw!'
|
||||
|
||||
" Sauvegarde et Fermeture de vimscode
|
||||
function! SaveAndQuit()
|
||||
wa
|
||||
qall!
|
||||
endfunction
|
||||
|
||||
" Fermeture ou ouverture du pluginlisst
|
||||
function! ClosePluginList()
|
||||
if &buftype == 'help' && expand('%:t') == 'PluginList'
|
||||
quit
|
||||
else
|
||||
:PluginList
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Configuration du terminal extensible
|
||||
function! OpenResizableTerminals(size)
|
||||
let size_arg = a:size != '' ? '++rows=' . a:size : ''
|
||||
execute 'bot term ' . size_arg
|
||||
endfunction
|
||||
|
||||
" Fonction pour la création d'un nouvel onglet
|
||||
function! OpenFileInNewTab()
|
||||
let user_choice = input("Voulez-vous ouvrir un fichier existant ? (o/n): ")
|
||||
if user_choice == 'o'
|
||||
let file_name = input("Choisir un fichier à ouvrir : ", '', 'file')
|
||||
if filereadable(file_name)
|
||||
execute "tabnew " . fnameescape(file_name)
|
||||
else
|
||||
echo "Le fichier spécifié n'existe pas : " . file_name
|
||||
endif
|
||||
elseif user_choice == 'n'
|
||||
let new_file = input("Nouveau nom de fichier : ")
|
||||
execute "tabnew " . new_file
|
||||
else
|
||||
echo "\nChoix invalide. Veuillez saisir 'o' pour ouvrir un fichier existant, ou 'n' pour créer un fichier."
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Configuration pour les touches en mode interaction
|
||||
nmap <S-y> :InteractiveWindow<CR>
|
||||
|
||||
function! InitWinmap()
|
||||
|
||||
let g:winmap = {}
|
||||
|
||||
let g:winmap.normal = {
|
||||
\ "h": "normal! \<C-w><" , "=": "normal! \<C-w>=" ,
|
||||
\ "j": "normal! \<C-w>-" , "f": "normal! \<C-w>_" ,
|
||||
\ "k": "normal! \<C-w>+" , "F": "normal! \<C-w>|" ,
|
||||
\ "l": "normal! \<C-w>>" , "o": "normal! \<C-w>o" ,
|
||||
\
|
||||
\ "|": "exe g:winmode.count.'wincmd |'",
|
||||
\ "\\": "exe g:winmode.count.'wincmd _'",
|
||||
\ "&": "normal! :\<C-r>=&tw\<CR>wincmd |\<CR>" ,
|
||||
\
|
||||
\ "\<A-h>": "normal! \<C-w>h" , "H": "normal! \<C-w>H" ,
|
||||
\ "\<A-j>": "normal! \<C-w>j" , "J": "normal! \<C-w>J" ,
|
||||
\ "\<A-k>": "normal! \<C-w>k" , "K": "normal! \<C-w>K" ,
|
||||
\ "\<A-l>": "normal! \<C-w>l" , "L": "normal! \<C-w>L" ,
|
||||
\
|
||||
\ "x": "normal! \<C-w>c" , "n": "normal! :bn\<CR>" ,
|
||||
\ "c": "normal! \<C-w>c" , "p": "normal! :bp\<CR>" ,
|
||||
\ "s": "normal! \<C-w>s" , "\<TAB>": "normal! :bn\<CR>" ,
|
||||
\ "v": "normal! \<C-w>v" , "\<S-TAB>": "normal! :bp\<CR>" ,
|
||||
\
|
||||
\ "w": "normal! \<C-w>w" , "\<A-w>": "normal! \<C-w>p" ,
|
||||
\ "W": "normal! \<C-w>W" ,
|
||||
\ "q": "normal! :copen\<CR>" ,
|
||||
\
|
||||
\ "m": "let g:winmode.submode='move'" ,
|
||||
\ ":": "let g:winmode.submode='set'" ,
|
||||
\ "t": "let g:winmode.submode='tab'" ,
|
||||
\
|
||||
\ "d": "bdelete" ,
|
||||
\ ";": "terminal" ,
|
||||
\
|
||||
\ "\<ESC>": "let exitwin=1" ,
|
||||
\ "\<CR>": "let exitwin=1" ,
|
||||
\}
|
||||
|
||||
let g:winmap.move = {
|
||||
\ "h": "normal! \<C-w>H" ,
|
||||
\ "j": "normal! \<C-w>J" ,
|
||||
\ "k": "normal! \<C-w>K" ,
|
||||
\ "l": "normal! \<C-w>L" ,
|
||||
\ "x": "normal! \<C-w>x" ,
|
||||
\ "r": "normal! \<C-w>r" ,
|
||||
\ "\<ESC>": "\" NOP" ,
|
||||
\ }
|
||||
|
||||
let g:winmap.set = {
|
||||
\ "w": "exe g:winmode.count.'wincmd |'",
|
||||
\ "h": "exe g:winmode.count.'wincmd _'",
|
||||
\ "W": "wincmd |",
|
||||
\ "H": "wincmd _",
|
||||
\ "\<ESC>": "let resetmode=1" ,
|
||||
\ }
|
||||
|
||||
let g:winmap.tab = {
|
||||
\ "o": "tab sview %" ,
|
||||
\ "e": "tabnew" ,
|
||||
\ "x": "tabclose" ,
|
||||
\ "n": "tabnext" ,
|
||||
\ "p": "tabprevious" ,
|
||||
\
|
||||
\ "w": "let g:winmode.submode='normal'" ,
|
||||
\ "\<ESC>": "let exitwin=1" ,
|
||||
\ }
|
||||
endfunction
|
||||
|
||||
" Configuration de la page d'accueil vim
|
||||
let g:startify_lists = [
|
||||
\ {'type': 'files', 'header': ['Fichiers récents']},
|
||||
\ ]
|
||||
|
||||
let g:startify_custom_header =
|
||||
\ startify#center(split(system('figlet -w 100 VIMSCODE'), '\n'))
|
||||
|
||||
" Configuration WhichKey
|
||||
call which_key#register('<Space>', "g:which_key_map")
|
||||
nnoremap <c-l> :WhichKey '<Space>'<CR>
|
||||
set timeoutlen=20
|
||||
let g:which_key_map = {
|
||||
\ 'name' : 'Raccourcis VimsCode' ,
|
||||
\ '<F2>' : ['<F2>' , 'fait apparaitre une note'] ,
|
||||
\ '<F3>' : ['<F3>' , 'fait apparaitre l arborescence'] ,
|
||||
\ '<F4>' : ['<F4>' , 'historique de modification'] ,
|
||||
\ '<F5>' : ['<F5>' , 'fait apparaitre un terminal'] ,
|
||||
\ '<F6>' : ['' , 'scroll dans le terminal'] ,
|
||||
\ '<F7>' : ['<F7>' , 'fait apparaitre un site aide'] ,
|
||||
\ '<F8>' : ['<F8>' , 'créer/ouvre une nouvelle fenetre'] ,
|
||||
\ '<F9>' : ['<<F9>' , 'change de fenetre'] ,
|
||||
\ '<F10>' : ['<F10>' , 'ferme VimsCode'] ,
|
||||
\ 'Ctrl-a' : ['<c-a>' , 'divise en deux vim verticalement'] ,
|
||||
\ 'Shift-n' : ['<S-n>' , 'divise en deux vim horizontalement'] ,
|
||||
\ '²' : ['²' , 'affiche les greffons'] ,
|
||||
\ ';-n' : ['<leader>n', 'Enleve la surbrillance de la recherche'] ,
|
||||
\ }
|
||||
|
||||
let g:which_key_map.f = {
|
||||
\ 'name' : 'Raccourcis FZF' ,
|
||||
\ 'Ctrl-p' : ['<c-p>' , 'active la recherche FZF'] ,
|
||||
\ 'Shift-f' : ['<S-f>' , 'marche pas'] ,
|
||||
\ 'Shift-b' : ['<S-b>' , 'active la recherche buffers'] ,
|
||||
\ 'Shift-m' : ['<S-m>' , 'active la recherche marque page'] ,
|
||||
\ 'Shift-t' : ['<S-t>' , 'active la recherche tags'] ,
|
||||
\ }
|
||||
|
||||
let g:which_key_map.a = {
|
||||
\ 'name' : 'Raccourcis Vim' ,
|
||||
\ 'Ctrl-w-w' : ['<C-W>w' , 'other-window'] ,
|
||||
\ 'Ctrl-w-c' : ['<C-W>c' , 'delete-window'] ,
|
||||
\ 'Ctrl-w-s' : ['<C-W>s' , 'split-window-below'] ,
|
||||
\ 'Ctrl-w-v' : ['<C-W>v' , 'split-window-right'] ,
|
||||
\ 'Ctrl-w-h' : ['<C-W>h' , 'window-left'] ,
|
||||
\ 'Ctrl-w-j' : ['<C-W>j' , 'window-below'] ,
|
||||
\ 'Ctrl-w-l' : ['<C-W>l' , 'window-right'] ,
|
||||
\ 'Ctrl-w-k' : ['<C-W>k' , 'window-up'] ,
|
||||
\ ':resize +5' : [':resize +5' , 'expand-window-below'] ,
|
||||
\ ':resize -5' : [':resize -5' , 'expand-window-up'] ,
|
||||
\ 'Ctrl-w-=' : ['<C-W>=' , 'balance-window'] ,
|
||||
\ }
|
||||
|
||||
let g:which_key_map.g = {
|
||||
\ 'name' : 'Mode fenetre' ,
|
||||
\ 'h/j/k/l' : ['' , 'rezise'] ,
|
||||
\ 'f/F' : ['' , 'plein ecran'] ,
|
||||
\ 'o' : ['' , 'plein ecran et ferme le reste'] ,
|
||||
\ '=' : ['' , 'egalise'] ,
|
||||
\ 's/v' : ['' , 'divise verticalement/horizontalement'] ,
|
||||
\ 'w/W' : ['' , 'change le focus'] ,
|
||||
\ 'H/J/K/L' : ['' , 'deplace les fenetres'] ,
|
||||
\ 'n/p' : ['' , 'change le buffer'] ,
|
||||
\ 'echap' : ['' , 'quitte le mode'] ,
|
||||
\ }
|
||||
|
||||
au VimEnter *.ino :NERDTreeFocus " Lance au début l'arborescence / load tree at the beginning
|
||||
au VimEnter *.ino :bot term " Lance au début un terminal en bas / load terminal at the beginning
|
||||
|
|
29
vimrc2-conf
Normal file
29
vimrc2-conf
Normal file
|
@ -0,0 +1,29 @@
|
|||
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 avec le gestionnaire Vundle
|
||||
Plugin 'preservim/nerdtree'
|
||||
Plugin 'mbbill/undotree'
|
||||
Plugin 'jeffkreeftmeijer/vim-numbertoggle'
|
||||
Plugin 'jodosha/vim-devnotes'
|
||||
Plugin 'joshdick/onedark.vim'
|
||||
Plugin 'flazz/vim-colorschemes'
|
||||
Plugin 'ervandew/supertab'
|
||||
Plugin 'tpope/vim-fugitive'
|
||||
Plugin 'jiangmiao/auto-pairs'
|
||||
Plugin 'tpope/vim-commentary'
|
||||
Plugin 'vim-airline/vim-airline'
|
||||
Plugin 'vim-airline/vim-airline-themes'
|
||||
Plugin 'liuchengxu/vim-which-key'
|
||||
Plugin 'mhinz/vim-startify'
|
||||
Plugin 'junegunn/fzf'
|
||||
Plugin 'junegunn/fzf.vim'
|
||||
Plugin 'romgrk/winteract.vim'
|
||||
Plugin 'kien/rainbow_parentheses.vim'
|
||||
|
||||
call vundle#end() " required
|
||||
filetype plugin indent on " required
|
85
vimscode.sh
Executable file
85
vimscode.sh
Executable file
|
@ -0,0 +1,85 @@
|
|||
install(){
|
||||
echo -e "INSTALLATION DE VIMSCODE\r"
|
||||
echo -e 'Installation en cours : [--------------------](0%)\r'
|
||||
sudo apt update > /dev/null 2>&1
|
||||
sudo apt install elinks figlet -y > /dev/null 2>&1
|
||||
echo -e 'Installation en cours : [#####---------------](25%)\r'
|
||||
|
||||
mkdir ~/.vim && mv * ~/.vim
|
||||
cd ~/.vim && mv vimrc-conf ~/.vimrc && mv vimrc2-conf ~/.vimrc2
|
||||
cd ~/.vim/bundle/ && git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim > /dev/null 2>&1
|
||||
sudo mv ~/.vim/install.sh /bin/
|
||||
echo -e 'Installation en cours : [##########----------](50%)\r'
|
||||
|
||||
echo "Utilisez-vous bash ou zsh ?"
|
||||
read -r term
|
||||
|
||||
if [ "$term" = "bash" ]; then
|
||||
if ! cat ~/.bashrc | grep -q 'alias vimscode="/bin/vimscode.sh"'; then
|
||||
echo 'alias vimscode="/bin/vimscode.sh"' >> ~/.bashrc
|
||||
fi
|
||||
else
|
||||
if ! cat ~/.zshrc | grep -q 'alias vimscode="/bin/vimscode.sh"'; then
|
||||
echo 'alias vimscode="/bin/vimscode.sh"' >> ~/.zshrc
|
||||
fi
|
||||
fi
|
||||
echo -e 'Configuration en cours : [###############-----](75%)\r'
|
||||
|
||||
vim -u ~/.vimrc2 -c PluginInstall -c q -c q > /dev/null 2>&1
|
||||
rm -rf ~/.vimrc2
|
||||
echo -e 'Configuration en cours : [####################](100%)\r'
|
||||
|
||||
echo "Installation terminée."
|
||||
}
|
||||
|
||||
# Fonction pour la mises a jour de Vimscode
|
||||
maj(){
|
||||
|
||||
echo -e "Mise à jour en cours..."
|
||||
echo -e 'Début de la mise à jour : [-----------------](0%)\r'
|
||||
rm -rf ~/.vim ~/.vimrc
|
||||
git clone https://git.cohabit.fr/bastien/VimsCode.git > /dev/null 2>&1 && cd VimsCode
|
||||
|
||||
mkdir ~/.vim && mv * ~/.vim
|
||||
cd ~/.vim && mv vimrc-conf ~/.vimrc && mv vimrc2-conf ~/.vimrc2
|
||||
cd ~/.vim/bundle/ && git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim > /dev/null 2>&1
|
||||
echo -e 'Mise à jour en cours : [#####---------------](25%)\r'
|
||||
|
||||
echo "Utilisez-vous bash ou zsh ?"
|
||||
read -r term
|
||||
|
||||
if [ "$term" = "bash" ]; then
|
||||
if ! cat ~/.bashrc | grep -q 'alias vimscode="/bin/vimscode.sh"'; then
|
||||
echo 'alias vimscode="/bin/vimscode.sh"' >> ~/.bashrc
|
||||
fi
|
||||
else
|
||||
if ! cat ~/.zshrc | grep -q 'alias vimscode="/bin/vimscode.sh"'; then
|
||||
echo 'alias vimscode="/bin/vimscode.sh"' >> ~/.zshrc
|
||||
fi
|
||||
fi
|
||||
echo -e 'Mise à jour en cours : [##########----------](50%)\r'
|
||||
|
||||
vim -u ~/.vimrc2 -c PluginInstall -c q -c q > /dev/null 2>&1
|
||||
rm -rf ~/.vimrc2
|
||||
echo -e 'Mise à jour en cours : [###############-----](75%)\r'
|
||||
|
||||
cd ../ && rm -rf Vimscode
|
||||
echo -e 'Mise à jour fini : [####################](100%)\r'
|
||||
echo -e "Mise à jour terminé."
|
||||
}
|
||||
|
||||
if [ "$1" = "-maj" ]; then
|
||||
maj
|
||||
elif [ "$1" = '-install' ] ; then
|
||||
install
|
||||
elif [ "$1" = '-a' ] || [ "$1" = '-arduino' ] ; then
|
||||
vim -p $2 ~/.vim/help/En/help-arduino
|
||||
elif [ "$1" = '-e' ] || [ "$1" = '-esp' ] ; then
|
||||
vim -p $2 ~/.vim/help/En/help-esp32
|
||||
elif [ "$1" = '-p' ] || [ "$1" = '-platform.io' ] ; then
|
||||
vim -p $2 ~/.vim/help/En/help-platform.io
|
||||
elif [ "$1" = '' ] || [ "$1" = '' ] ; then
|
||||
cat ~/.vim/help/help-vimscode
|
||||
else
|
||||
echo "Commande invalide"
|
||||
fi
|
Loading…
Reference in a new issue