====Conversion de format==== ===Convertir un retour chariot dos en unix=== :e ++ff=dos :setlocal ff=unix ===Convert ISO-8859 en UTF-8 Unicode=== :set fileencoding=utf-8 ====Modifier l'indentation d'un fichier==== ===Langage C/C++=== Nécessite le programme ''indent'' [[http://www.gnu.org/software/indent|Téléchargement]], {{vim:indent-2.2.11.tar.gz|Archive 2.2.11}} :%! indent -kr -i8 -ts8 -sob -l80 -ss -bs -psl ===Langage XML=== Nécessite le programme ''xmlformat'' [[http://www.kitebird.com/software/xmlformat|Téléchargement]], {{::vim:xmlformat-1.04.tar.gz|Archive 1.04}} :%! xmlformat ====Remplacement de texte==== ===Remplacer un texte de la ligne en cours jusqu’à la fin du fichier=== :.,$s/text a remplacer/text de substitution/g ====Déplacement de texte==== ===Déplacer la ligne en cours à la ligne 0=== :m0 ====Recherche==== ===Surligner les résultats=== :set hlsearch ====Coloration syntaxique==== Forcer la coloration sur un langage : :set syntax=cpp ====YouCompleteMe==== Méthode d'installation sous Linux : [[https://unixnme.blogspot.com/2017/03/how-to-install-youcompleteme-vim-plugin.html|How to Install YouCompleteMe Vim Plugin for Linux]] {{ :ide:vim:unix_me_how_to_install_youcompleteme_vim_plugin_for_linux_2020-04-29_11_12_26_pm_.html |Archive du 22/03/2017 le 29/04/2020}}