Changes

Jump to: navigation, search

Package:Vim/Cheatsheet

1,631 bytes added, 5 years ago
Added actions
* The description given in the "description" column is rather short, often it is best to try it your self and see what it actually does.
* Even if not specified in the "command" column, most commands fired in normal mode accept a "<num> prefix" (Eg. `5w` is equivalent to `wwwww`).
* Most commands will work in visual mode as well as in normal mode.
 
== Deplacements ==
 
{{TableStart|striped=true}}
</tr>
{{TableEnd}}
 
== Actions ==
 
 
{{TableStart|striped=true}}
<tr>
<th>command</th>
<th>meaning</th>
<th>description</th>
</tr>
<tr>
<td><num>dd</td>
<td>delete</td>
<td>delete <num> lines</td>
</tr>
<tr>
<td><num>yy</td>
<td>yank</td>
<td>copy <num> lines to vim's default buffer</td>
</tr>
<tr>
<td>x</td>
<td></td>
<td>remove the character under the cursor</td>
</tr>
<tr>
<td><num>p</td>
<td>paste</td>
<td>paste <num> times vim's default buffer after the cursor</td>
</tr>
<tr>
<td><num>P</td>
<td>Paste</td>
<td>paste <num> times vim's default buffer before the cursor</td>
</tr>
<tr>
<td>~</td>
<td></td>
<td>swap case under the cursor</td>
</tr>
<tr>
<td>.</td>
<td></td>
<td>repeat previous action (kind of "live macro", try it yourself and see)</td>
</tr>
<tr>
<td>/<pattern><CR></td>
<td></td>
<td>search next occurrence of <pattern></td>
</tr>
<tr>
<td>?<pattern><CR></td>
<td></td>
<td>search previous occurrence of <pattern></td>
</tr>
<tr>
<td>*</td>
<td></td>
<td>look for the next occurrence of the word under the cursor</td>
</tr>
<tr>
<td>n</td>
<td></td>
<td>forward search last searched pattern</td>
</tr>
<tr>
<td>N</td>
<td></td>
<td>backward search last searched pattern</td>
</tr>
{{TableEnd}
wiki-staff
336
edits

Navigation menu