Outils pour utilisateurs

Outils du site


tuto:linux:encoding_avec_vim

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
tuto:linux:encoding_avec_vim [2010/04/25 18:38] roottuto:linux:encoding_avec_vim [2010/04/25 18:38] (Version actuelle) root
Ligne 13: Ligne 13:
 Faire un script VIM pour réencoder ses fichiers : Faire un script VIM pour réencoder ses fichiers :
   * fichier fileencoding.vi   * fichier fileencoding.vi
-  :write ++enc=iso-8859-15  +<code> 
-  :q+:write ++enc=iso-8859-15  
 +:q 
 +</code>
  
   * fichier fileencoding.sh   * fichier fileencoding.sh
-  #!/bin/bash +<code> 
-  find .. -type f -iname "*.php" -print -exec sh -c 'vim -e "$0" <"fileencoding.vi"' '{}' \;+#!/bin/bash 
 +find .. -type f -iname "*.php" -print -exec sh -c 'vim -e "$0" <"fileencoding.vi"' '{}' \; 
 +</code>
tuto/linux/encoding_avec_vim.1272220697.txt.gz · Dernière modification : 2010/04/25 18:38 de root