IDE
1. vimrc howto
you you can find below my vimrc i used on most of my servers.
here is what it does:
- :ai : 'autoindent' does nothing more than copy the indentation from the previous line, when starting a new line. It can be useful for structured text files, or when you want to control most of the indentation manually, without Vim interfering
- :si : 'smartindent' automatically inserts one extra level of indentation in some cases, and works for C-like files
.
- filetype : based on the file extension it will enable some plugins (colorisation, indentation etc)
- syntax : it will colorized your file
- background : the background is set to black
- ignorecase: it will ignore the case when searching (using /)
- highlight search
- show matching bracket when going over
- switch buffer with F5 then <tab>
- paste mode with F2
i created this vimrc thanks to a lot of different people over Internet.
1.Indentation
la built-in de vim = permet de gérer l'indentation d'un fichier ou d'une section.
pour reindenter un fichier mal formater:
- gg : permet de positionner le curseur au début du fichier.
- =g : re indent depuis la position du curseur jusqu'à la fin
Pour indenter un fichier JSON
2.Header pour fichier Python
3. vimrc
dzd