Always some ameliorations

This commit is contained in:
Yann Esposito (Yogsototh) 2011-08-26 16:32:49 +02:00
parent 77b9a5a83e
commit 89dcd23e7e
5 changed files with 53 additions and 40 deletions

View file

@ -40,14 +40,11 @@ By the end of this journey, you'll become a vim superstar.
But before we start, just a warning.
Learning vim will be painful at first.
You can't learn simply by reading article such as this one.
It takes time.
You'll have to train yourself.
It is a lot like playing a music instrument.
It will take time.
It will be a lot like playing a music instrument.
Don't expect to be more efficient with vim than with another editor in less than 3 days.
In fact it will certainly take 2 weeks instead of 3 days.
[Vim]: http://www.vim.org
[vim]: http://www.vim.org
@ -65,11 +62,11 @@ Vim is in _edition_ mode.
Lets get in _insertion_ mode.
Type on the letter `i`.
Now you should feel a bit better.
You should feel a bit better.
You can type letters like in a standard notepad.
To get back in _edition_ mode just tap the `ESC` key.
Now you know how to switch between insertion and edition mode.
You know how to switch between insertion and edition mode.
And now, the list of command you can use in edition mode to survive:
> - `i`: Insertion mode. Type `ESC` to return to edition mode.
@ -77,17 +74,19 @@ And now, the list of command you can use in edition mode to survive:
> - `:wq`: Save and Quit (`:w` save, `:q` quit)
> - `dd`: Delete (and copy) current line
> - `p`: Paste current line
> - `hjkl` (recommended but not mandatory): basic cursor move (<-&darr;&uarr;→). Hint `j` look like a down arrow.
>
> Recommended:
>
> - `hjkl` (recommended but not mandatory): basic cursor move (<-&darr;&uarr;→). Hint: `j` look like a down arrow.
> - `:help <command>`: Show help about <command>, you can start using `:help` without anything else.
Only 5 commands. This is very few to start.
Once these command start to become natural (may be after a complete day), you should go on level 2.
Just a little remark on edition mode before.
In standard editors, to make a special thing (copy for example), you
have to use a combination using `Ctrl` (for example `Ctrl-C`).
But before, just a little remark on _edition mode_.
In standard editors, to copy you have to use the `Ctrl` key (`Ctrl-c` generally).
In fact, when you press `Ctrl`, it is a bit like if all your key change meaning.
In vim, when you are in edition mode, it is like if your `Ctrl` key is always pushed down.
With vim in edition mode, it is a bit like if your `Ctrl` key is always pushed down.
A last word about notation: instead of writing `Ctrl-λ`, I'll write `C-λ`.

View file

@ -46,7 +46,6 @@ Apprendre vim ressemble beaucoup à apprendre un instrument de musique.
N'espérez pas être plus efficace avec vim qu'avec un autre éditeur avant au moins trois jours.
En fait ça sera certainement plus 2 semaines que 3 jours.
[Vim]: http://www.vim.org
[vim]: http://www.vim.org
@ -76,7 +75,11 @@ Voici les commandes de survie (toutes en mode edition) :
> - `:wq` : Sauvegarder et quitter (`:w` sauvegarde, `:q` quitter)
> - `dd` : Supprimer (et copier) la ligne courante
> - `p` : Coller
>
> Récommandées :
>
> - `hjkl` (optionnel) : se déplacer (<-&darr;&uarr;→). Souvenez vous `j` ressemble à une flèche vers le bas.
> - `:help <commande>` : Affiche l'aide pour `<commande>`. Vous pouvez aussi écrire `:help` pour atterir sur l'aide générale.
Seulement 5 commandes.
Voilà, c'est tout pour un début.
@ -289,7 +292,7 @@ Ajouter quelque chose à la fin de toutes les lignes sélectionnées visuellemen
<%= blogimage("append-to-many-lines.gif","Ajouter à la fin de plusieurs lignes") %>
Splits : `:split` et `vsplit`.
### Splits : `:split` et `vsplit`.
Je vous conseille de faire un `:help split`.
Celà permet de manipuler plusieurs buffer sur la même fenêtre.

View file

@ -54,10 +54,8 @@ fr: À la fin de ces leçons vous serez transformé.
en: But before we start, just a warning.
en: Learning vim will be painful at first.
en: You can't learn simply by reading article such as this one.
en: It takes time.
en: You'll have to train yourself.
en: It is a lot like playing a music instrument.
en: It will take time.
en: It will be a lot like playing a music instrument.
en: Don't expect to be more efficient with vim than with another editor in less than 3 days.
en: In fact it will certainly take 2 weeks instead of 3 days.
fr: Avant de commencer, un message pour vous prévenir.
@ -68,7 +66,6 @@ fr: Apprendre vim ressemble beaucoup à apprendre un instrument de musique.
fr: N'espérez pas être plus efficace avec vim qu'avec un autre éditeur avant au moins trois jours.
fr: En fait ça sera certainement plus 2 semaines que 3 jours.
[Vim]: http://www.vim.org
[vim]: http://www.vim.org
@ -95,14 +92,14 @@ fr: Vim est en mode _edition_.
fr: Commençons par placer vim en mode _insertion_.
fr: Tapez sur la touche `i`.
en: Now you should feel a bit better.
en: You should feel a bit better.
en: You can type letters like in a standard notepad.
en: To get back in _edition_ mode just tap the `ESC` key.
fr: Voilà, c'est magique.
fr: Vous pouvez tapez comme dans un éditeur standard.
fr: Pour repasser en mode édition tapez sur la touche `Echap`.
en: Now you know how to switch between insertion and edition mode.
en: You know how to switch between insertion and edition mode.
en: And now, the list of command you can use in edition mode to survive:
fr: Maintenant que vous savez passer du mode edition au mode insertion.
fr: Voici les commandes de survie (toutes en mode edition) :
@ -112,14 +109,21 @@ en: > - `x`: Delete the char under the cursor
en: > - `:wq`: Save and Quit (`:w` save, `:q` quit)
en: > - `dd`: Delete (and copy) current line
en: > - `p`: Paste current line
en: > - `hjkl` (recommended but not mandatory): basic cursor move (<-&darr;&uarr;→). Hint `j` look like a down arrow.
en: >
en: > Recommended:
en: >
en: > - `hjkl` (recommended but not mandatory): basic cursor move (<-&darr;&uarr;→). Hint: `j` look like a down arrow.
en: > - `:help <command>`: Show help about <command>, you can start using `:help` without anything else.
fr: > - `i` : Passer en mode insértion. Taper `Echap` pour repasser en mode edition.
fr: > - `x` : Supprimer le caractère sous le curseur
fr: > - `:wq` : Sauvegarder et quitter (`:w` sauvegarde, `:q` quitter)
fr: > - `dd` : Supprimer (et copier) la ligne courante
fr: > - `p` : Coller
fr: >
fr: > Récommandées :
fr: >
fr: > - `hjkl` (optionnel) : se déplacer (<-&darr;&uarr;→). Souvenez vous `j` ressemble à une flèche vers le bas.
fr: > - `:help <commande>` : Affiche l'aide pour `<commande>`. Vous pouvez aussi écrire `:help` pour atterir sur l'aide générale.
en: Only 5 commands. This is very few to start.
en: Once these command start to become natural (may be after a complete day), you should go on level 2.
@ -129,11 +133,10 @@ fr: Essayez d'éditer vos fichiers comme ça pendant une petite journée.
fr: Lorsque ces commandes vous sembleront naturelles,
fr: vous pourrez passer à l'étape d'après.
en: Just a little remark on edition mode before.
en: In standard editors, to make a special thing (copy for example), you
en: have to use a combination using `Ctrl` (for example `Ctrl-C`).
en: But before, just a little remark on _edition mode_.
en: In standard editors, to copy you have to use the `Ctrl` key (`Ctrl-c` generally).
en: In fact, when you press `Ctrl`, it is a bit like if all your key change meaning.
en: In vim, when you are in edition mode, it is like if your `Ctrl` key is always pushed down.
en: With vim in edition mode, it is a bit like if your `Ctrl` key is always pushed down.
fr: Mais avant un petit mot sur le mode édition.
fr: Dans un éditeur normal pour copier il faut utiliser une combinaison de touches (`Ctrl-c`).
fr: En fait, lorsque vous appuyez sur la touche `Ctrl`, c'est un peu comme si toutes les touches du clavier avaient un autre usage.
@ -155,7 +158,7 @@ fr: Je vous suggère :
en: 1. Insertion mode variations:
en:
en: > - `a` → insert _after_ the cursor
en: > - `a` → insert after the cursor
en: > - `o` → insert a new line after the current one
en: > - `O` → insert a new line before the current one
en: > - `cw` → replace the word under the cursor
@ -483,7 +486,7 @@ en: <%= blogimage("append-to-many-lines.gif","Append to many lines") %>
fr: <%= blogimage("append-to-many-lines.gif","Ajouter à la fin de plusieurs lignes") %>
en: ### Splits : `:split` and `vsplit`.
fr: Splits : `:split` et `vsplit`.
fr: ### Splits : `:split` et `vsplit`.
en: Here are the main commands, but you should look at `:help split`.
en:

View file

@ -93,10 +93,8 @@ Hard to learn, but incredible to use.</p>
<p>But before we start, just a warning.
Learning vim will be painful at first.
You can&rsquo;t learn simply by reading article such as this one.
It takes time.
You&rsquo;ll have to train yourself.
It is a lot like playing a music instrument.
It will take time.
It will be a lot like playing a music instrument.
Don&rsquo;t expect to be more efficient with vim than with another editor in less than 3 days.
In fact it will certainly take 2 weeks instead of 3 days.</p>
@ -114,11 +112,11 @@ Vim is in <em>edition</em> mode.
Lets get in <em>insertion</em> mode.
Type on the letter <code>i</code>.</p>
<p>Now you should feel a bit better.
<p>You should feel a bit better.
You can type letters like in a standard notepad.
To get back in <em>edition</em> mode just tap the <code>ESC</code> key.</p>
<p>Now you know how to switch between insertion and edition mode.
<p>You know how to switch between insertion and edition mode.
And now, the list of command you can use in edition mode to survive:</p>
<blockquote>
@ -128,7 +126,12 @@ And now, the list of command you can use in edition mode to survive:</p>
<li><code>:wq</code>: Save and Quit (<code>:w</code> save, <code>:q</code> quit)</li>
<li><code>dd</code>: Delete (and copy) current line</li>
<li><code>p</code>: Paste current line</li>
<li><code>hjkl</code> (recommended but not mandatory): basic cursor move (&larr;&darr;&uarr;→). Hint <code>j</code> look like a down arrow.</li>
</ul>
<p>Recommended:</p>
<ul>
<li><code>hjkl</code> (recommended but not mandatory): basic cursor move (&larr;&darr;&uarr;→). Hint: <code>j</code> look like a down arrow.</li>
<li><code>:help &lt;command&gt;</code>: Show help about <command />, you can start using <code>:help</code> without anything else.</li>
</ul>
</blockquote>
@ -136,11 +139,10 @@ And now, the list of command you can use in edition mode to survive:</p>
<p>Only 5 commands. This is very few to start.
Once these command start to become natural (may be after a complete day), you should go on level 2.</p>
<p>Just a little remark on edition mode before.
In standard editors, to make a special thing (copy for example), you
have to use a combination using <code>Ctrl</code> (for example <code>Ctrl-C</code>).
<p>But before, just a little remark on <em>edition mode</em>.
In standard editors, to copy you have to use the <code>Ctrl</code> key (<code>Ctrl-c</code> generally).
In fact, when you press <code>Ctrl</code>, it is a bit like if all your key change meaning.
In vim, when you are in edition mode, it is like if your <code>Ctrl</code> key is always pushed down.</p>
With vim in edition mode, it is a bit like if your <code>Ctrl</code> key is always pushed down.</p>
<p>A last word about notation: instead of writing <code>Ctrl-λ</code>, I&rsquo;ll write <code>C-λ</code>.</p>

View file

@ -127,7 +127,13 @@ Voici les commandes de survie (toutes en mode edition)&nbsp;:</p>
<li><code>:wq</code>&nbsp;: Sauvegarder et quitter (<code>:w</code> sauvegarde, <code>:q</code> quitter)</li>
<li><code>dd</code>&nbsp;: Supprimer (et copier) la ligne courante</li>
<li><code>p</code>&nbsp;: Coller</li>
</ul>
<p>Récommandées&nbsp;:</p>
<ul>
<li><code>hjkl</code> (optionnel)&nbsp;: se déplacer (&larr;&darr;&uarr;→). Souvenez vous <code>j</code> ressemble à une flèche vers le bas.</li>
<li><code>:help &lt;commande&gt;</code>&nbsp;: Affiche l&rsquo;aide pour <code>&lt;commande&gt;</code>. Vous pouvez aussi écrire <code>:help</code> pour atterir sur l&rsquo;aide générale.</li>
</ul>
</blockquote>
@ -413,7 +419,7 @@ Et une fois la sélection visuelle faite vous pouvez par exemple:</p>
<p><img alt="Ajouter à la fin de plusieurs lignes" src="/Scratch/img/blog/Learn-Vim-Progressively/append-to-many-lines.gif" /></p>
<p>Splits&nbsp;: <code>:split</code> et <code>vsplit</code>.</p>
<h3 id="splits--split-et-vsplit">Splits&nbsp;: <code>:split</code> et <code>vsplit</code>.</h3>
<p>Je vous conseille de faire un <code>:help split</code>.
Celà permet de manipuler plusieurs buffer sur la même fenêtre.