summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrgoblin <mrgoblin@slackware.com>2011-04-12 12:59:11 +1200
committermrgoblin <mrgoblin@slackware.com>2011-04-12 12:59:11 +1200
commitb2961d9ee606085fe06c5b73c6ac713f92b24d46 (patch)
treef3bcd46312ad8fbdc520fb28383dab7e51d4b63a
parent9dc94a2106fa2c2ba5274f1266e7b63bf5bcf05a (diff)
downloadslackbook-b2961d9ee606085fe06c5b73c6ac713f92b24d46.tar.xz
Added "yy" and "%" entries to vi cheat sheet
-rw-r--r--chapter_12.xml10
1 files changed, 9 insertions, 1 deletions
diff --git a/chapter_12.xml b/chapter_12.xml
index e69fd1e..f7f9540 100644
--- a/chapter_12.xml
+++ b/chapter_12.xml
@@ -290,6 +290,10 @@ you begin to feel comfortable.
<entry>Remove five words (and store them in the copy buffer)</entry>
</row>
<row>
+ <entry>yy</entry>
+ <entry>Yank (copy) a line (and store it in the copy buffer)</entry>
+ </row>
+ <row>
<entry>yw</entry>
<entry>Yank (copy) a single word (and store it in the copy buffer)</entry>
</row>
@@ -327,7 +331,11 @@ you begin to feel comfortable.
</row>
<row>
<entry>:s'old'new'g</entry>
- <entry>Replace all occurances of 'old' with 'new'</entry>
+ <entry>Replace all occurances of 'old' with 'new' (current line only)</entry>
+ </row>
+ <row>
+ <entry>:%s'old'new'g</entry>
+ <entry>Replace all occurances of 'old' with 'new' (all lines)</entry>
</row>
<row>
<entry>/asdf</entry>