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 ] Réouvrir un fichier là où on l'a quitté

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


Imaginez-vous occupé à configurer votre serveur web, à modifier un paramètre de votre httpd.conf, puis de sauver, relancer apache, puis AAARGH, ca ne fait pas ce que l'on veut, alors vous rentrez à nouveau dans le fichier de httpd.conf, et là, RE-AAARGH, vous êtes revenu tout en haut, et vous devez faire défiler le texte...

Dans ce cas, .vimrc peut vous aider ;-)
Insérez le code suivant dans votre ~/.vimrc pour que le curseur se trouve là où il était au moment ou vous avez quitté le fichier pour la dernière fois.

Le code à insérer:


autocmd BufReadPost *
\ if line("'\"") › 0 && line("'\"") ‹= line("$") |
\ exe "normal g`\"" |
\ endif



Avatar :: Akira Sato Un article de 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-163.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.