Eliminate duplicate 'Cut and Paste' section in Vim cheat sheet.
parent
e2e2707fdc
commit
764b3be0f6
|
@ -116,7 +116,7 @@ sub split_into_two_columns {
|
|||
my $length = scalar @$tables;
|
||||
my $half = int( $length / 2 );
|
||||
|
||||
my @column1 = @$tables[0..$half];
|
||||
my @column1 = @$tables[0 .. $half - 1];
|
||||
my @column2 = @$tables[$half .. $length - 1];
|
||||
|
||||
return [ \@column1, \@column2 ];
|
||||
|
|
|
@ -366,83 +366,6 @@
|
|||
</tr>
|
||||
|
||||
</table>
|
||||
<b>Cut and Paste</b>
|
||||
<table class="vim-table">
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<code>yy</code><br>
|
||||
</td>
|
||||
<td>yank (copy) a line</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>2yy</code><br>
|
||||
</td>
|
||||
<td>yank 2 lines</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>yw</code><br>
|
||||
</td>
|
||||
<td>yank word</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>y$</code><br>
|
||||
</td>
|
||||
<td>yank to end of line</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>p</code><br>
|
||||
</td>
|
||||
<td>put (paste) the clipboard after cursor</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>P</code><br>
|
||||
</td>
|
||||
<td>put (paste) before cursor</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>dd</code><br>
|
||||
</td>
|
||||
<td>delete (cut) a line</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>2dd</code><br>
|
||||
</td>
|
||||
<td>delete (cut) 2 lines</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>dw</code><br>
|
||||
</td>
|
||||
<td>delete (cut) the current word</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>D</code><br>
|
||||
</td>
|
||||
<td>delete (cut) to the end of line</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>d$</code><br>
|
||||
</td>
|
||||
<td>delete (cut) to the end of the line</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>x</code><br>
|
||||
</td>
|
||||
<td>delete (cut) current character</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="vim-column">
|
||||
|
|
|
@ -62,21 +62,6 @@ y yank (copy) marked text
|
|||
d delete marked text
|
||||
~ switch case
|
||||
|
||||
Cut and Paste
|
||||
|
||||
yy yank (copy) a line
|
||||
2yy yank 2 lines
|
||||
yw yank word
|
||||
y$ yank to end of line
|
||||
p put (paste) the clipboard after cursor
|
||||
P put (paste) before cursor
|
||||
dd delete (cut) a line
|
||||
2dd delete (cut) 2 lines
|
||||
dw delete (cut) the current word
|
||||
D delete (cut) to the end of line
|
||||
d$ delete (cut) to the end of the line
|
||||
x delete (cut) current character
|
||||
|
||||
|
||||
Cut and Paste
|
||||
|
||||
|
|
Loading…
Reference in New Issue