Corrected some issues

This commit is contained in:
Yann Esposito (Yogsototh) 2011-08-29 15:41:15 +02:00
parent 8f7bf88666
commit 4368acca44
5 changed files with 23 additions and 12 deletions

View file

@ -224,19 +224,21 @@ _Some Useful Tips_
> - `dt"` → remove everything until the `"`.
> - `vi"` → select everything inside two `"`.
### Select rectangular blocs: `<C-V>`.
### Select rectangular blocs: `<C-v>`.
Rectangular blocks are very useful to comment many lines of code.
Typically: `0<C-V><C-d>I// [ESC]`
Typically: `0<C-v><C-d>I// [ESC]`
- `^` → go to start of the line
- `<C-V>` → Start block selection
- `<C-v>` → Start block selection
- `<C-d>` → move down (could also be `jjj` or `%`, etc...)
- `I// [ESC]` → write `// ` to comment each line
<%= blogimage("rectangular-blocks.gif","Rectangular blocks") %>
Not on windows you might have to use `<C-q>` instead of `<C-v>` if your clipboard is not empty.
### Completion: `<C-n>` and `<C-p>`.
In Insert mode, just type the start of a word, then type `<C-p>`, magic...
@ -267,7 +269,7 @@ Then `@a` will replay the macro saved into the register `a` as if you typed it.
### Visual selection: `v`,`V`,`<C-v>`
We saw an example with `<C-V>`.
We saw an example with `<C-v>`.
There is also `v` and `V`.
Once the selection made, you can:

View file

@ -244,6 +244,8 @@ Typiquement: `^<C-V><C-d>I// [ESC]`
<%= blogimage("rectangular-blocks.gif","Rectangular blocks") %>
Remarquez que sous windows, vous devez utiliser `<C-q>` plutôt que `<C-v>` si votre "presse papier" n'est pas vide.
### Complétion : `<C-n>` et `<C-p>`.
En mode Insert, commencez à écrire le début d'un mot déjà présent dans l'un des buffers (fichers) ouvert et tapes `<C-p>`. Magique.

View file

@ -381,14 +381,14 @@ fr:
fr: > - `dt"` → supprime tout jusqu'au `"`.
fr: > - `vi"` → sélectionne tout ce qui se trouve entre les deux `"`.
en: ### Select rectangular blocs: `<C-V>`.
en: ### Select rectangular blocs: `<C-v>`.
fr: ### Sélection de blocs rectangulaires : `<C-V>`.
en: Rectangular blocks are very useful to comment many lines of code.
en: Typically: `0<C-V><C-d>I// [ESC]`
en: Typically: `0<C-v><C-d>I// [ESC]`
en:
en: - `^` → go to start of the line
en: - `<C-V>` → Start block selection
en: - `<C-v>` → Start block selection
en: - `<C-d>` → move down (could also be `jjj` or `%`, etc...)
en: - `I// [ESC]` → write `// ` to comment each line
@ -402,6 +402,9 @@ fr: - `I// [ESC]` → écrit `// ` pour commenter le reste de la ligne.
<%= blogimage("rectangular-blocks.gif","Rectangular blocks") %>
en: Not on windows you might have to use `<C-q>` instead of `<C-v>` if your clipboard is not empty.
fr: Remarquez que sous windows, vous devez utiliser `<C-q>` plutôt que `<C-v>` si votre "presse papier" n'est pas vide.
en: ### Completion: `<C-n>` and `<C-p>`.
fr: ### Complétion : `<C-n>` et `<C-p>`.
@ -451,7 +454,7 @@ fr: > - Écrivez `100@@`. Cela va créer une liste de nombre croissants jusqu'à
en: ### Visual selection: `v`,`V`,`<C-v>`
fr: ### Sélection visuelle : `v`,`V`,`<C-v>`
en: We saw an example with `<C-V>`.
en: We saw an example with `<C-v>`.
en: There is also `v` and `V`.
en: Once the selection made, you can:
en:

View file

@ -338,20 +338,22 @@ Some of these features were the reason I started to use vim.</p>
</ul>
</blockquote>
<h3 id="select-rectangular-blocs-c-v">Select rectangular blocs: <code>&lt;C-V&gt;</code>.</h3>
<h3 id="select-rectangular-blocs-c-v">Select rectangular blocs: <code>&lt;C-v&gt;</code>.</h3>
<p>Rectangular blocks are very useful to comment many lines of code.
Typically: <code>0&lt;C-V&gt;&lt;C-d&gt;I// [ESC]</code></p>
Typically: <code>0&lt;C-v&gt;&lt;C-d&gt;I// [ESC]</code></p>
<ul>
<li><code>^</code> → go to start of the line</li>
<li><code>&lt;C-V&gt;</code> → Start block selection</li>
<li><code>&lt;C-v&gt;</code> → Start block selection</li>
<li><code>&lt;C-d&gt;</code> → move down (could also be <code>jjj</code> or <code>%</code>, etc&hellip;)</li>
<li><code>I// [ESC]</code> → write <code>// </code> to comment each line</li>
</ul>
<p><img alt="Rectangular blocks" src="/Scratch/img/blog/Learn-Vim-Progressively/rectangular-blocks.gif" /></p>
<p>Not on windows you might have to use <code>&lt;C-q&gt;</code> instead of <code>&lt;C-v&gt;</code> if your clipboard is not empty.</p>
<h3 id="completion-c-n-and-c-p">Completion: <code>&lt;C-n&gt;</code> and <code>&lt;C-p&gt;</code>.</h3>
<p>In Insert mode, just type the start of a word, then type <code>&lt;C-p&gt;</code>, magic&hellip;
@ -389,7 +391,7 @@ Then <code>@a</code> will replay the macro saved into the register <code>a</code
<h3 id="visual-selection-vvc-v">Visual selection: <code>v</code>,<code>V</code>,<code>&lt;C-v&gt;</code></h3>
<p>We saw an example with <code>&lt;C-V&gt;</code>.
<p>We saw an example with <code>&lt;C-v&gt;</code>.
There is also <code>v</code> and <code>V</code>.
Once the selection made, you can:</p>

View file

@ -359,6 +359,8 @@ Typiquement: <code>^&lt;C-V&gt;&lt;C-d&gt;I// [ESC]</code></p>
<p><img alt="Rectangular blocks" src="/Scratch/img/blog/Learn-Vim-Progressively/rectangular-blocks.gif" /></p>
<p>Remarquez que sous windows, vous devez utiliser <code>&lt;C-q&gt;</code> plutôt que <code>&lt;C-v&gt;</code> si votre &ldquo;presse papier&rdquo; n&rsquo;est pas vide.</p>
<h3 id="compltion--c-n-et-c-p">Complétion&nbsp;: <code>&lt;C-n&gt;</code> et <code>&lt;C-p&gt;</code>.</h3>
<p>En mode Insert, commencez à écrire le début d&rsquo;un mot déjà présent dans l&rsquo;un des buffers (fichers) ouvert et tapes <code>&lt;C-p&gt;</code>. Magique.