No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Vous devez être membre et vous identifier pour publier un article.
Les visiteurs peuvent toutefois commenter chaque article par une réponse.

[Editeur Vim] Supprimer les ^M

Astuces de l’Infobrol (Linux)Article publié le 10/01/2005 19:52:53


Je travaille autant sous Windows que sous Linux (franchement, les deux ont leurs avantages), mais quand j'édite sous vim un fichier qui a été édité sous notepad, chaque ligne se termine par ^M

Voici comment nettoyer le fichier rapidement:



:%s/ctrl+v ctrl+m//



Attention!évidemment, remplacez ctrl+v ctrl+m par les combinaisons de touches adéquoites ;-)

  • % applique à tout le fichier

  • s remplace la première chaîne entre barres obliques (le ctrl+v ctrl+m qui vaut le fameux ^M) par la seconde (rien)


Avatar :: Akira Sato Un article de Akira SatoModifié 1 fois. (dernière modification le 10/01/2005 19:53:25 par Akira Sato)



Source : indéterminée


Sélection, tri et recherche d'articles
FILTRER :
TRIER :1er critère : 2e critère :
CHERCHER : Dans les titres Dans le contenu


[Afficher les liens en fonction des critères du formulaire ci-dessus]

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 13/09/2004, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/ast-rf-170.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.