Corrected some issues
This commit is contained in:
parent
8f7bf88666
commit
4368acca44
5 changed files with 23 additions and 12 deletions
|
@ -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:
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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><C-V></code>.</h3>
|
||||
<h3 id="select-rectangular-blocs-c-v">Select rectangular blocs: <code><C-v></code>.</h3>
|
||||
|
||||
<p>Rectangular blocks are very useful to comment many lines of code.
|
||||
Typically: <code>0<C-V><C-d>I// [ESC]</code></p>
|
||||
Typically: <code>0<C-v><C-d>I// [ESC]</code></p>
|
||||
|
||||
<ul>
|
||||
<li><code>^</code> → go to start of the line</li>
|
||||
<li><code><C-V></code> → Start block selection</li>
|
||||
<li><code><C-v></code> → Start block selection</li>
|
||||
<li><code><C-d></code> → move down (could also be <code>jjj</code> or <code>%</code>, etc…)</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><C-q></code> instead of <code><C-v></code> if your clipboard is not empty.</p>
|
||||
|
||||
<h3 id="completion-c-n-and-c-p">Completion: <code><C-n></code> and <code><C-p></code>.</h3>
|
||||
|
||||
<p>In Insert mode, just type the start of a word, then type <code><C-p></code>, magic…
|
||||
|
@ -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><C-v></code></h3>
|
||||
|
||||
<p>We saw an example with <code><C-V></code>.
|
||||
<p>We saw an example with <code><C-v></code>.
|
||||
There is also <code>v</code> and <code>V</code>.
|
||||
Once the selection made, you can:</p>
|
||||
|
||||
|
|
|
@ -359,6 +359,8 @@ Typiquement: <code>^<C-V><C-d>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><C-q></code> plutôt que <code><C-v></code> si votre “presse papier” n’est pas vide.</p>
|
||||
|
||||
<h3 id="compltion--c-n-et-c-p">Complétion : <code><C-n></code> et <code><C-p></code>.</h3>
|
||||
|
||||
<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 <code><C-p></code>. Magique.
|
||||
|
|
Loading…
Reference in a new issue