vendredi 19 février 2010

[Éditeur/Vim] Coloriser vos fichiers

Lu sur : "http://linuxfr.org/forums/47/24644.html"

Pour voir votre beau source tout neuf avec un navigateur web, tapez vim +f +"syntax on" +"so /usr/share/vim/syntax//2html.vim" +"wq" +"q" toto.c et vous aurez un beau fichier toto.c.html. Mieux, pour convertir tout un répertoire, for f in src/*.c; do vim -f ... +"q" $f; done et vous attendez un peu.

Aucun commentaire: