From b2961d9ee606085fe06c5b73c6ac713f92b24d46 Mon Sep 17 00:00:00 2001 From: mrgoblin Date: Tue, 12 Apr 2011 12:59:11 +1200 Subject: Added "yy" and "%" entries to vi cheat sheet --- chapter_12.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'chapter_12.xml') diff --git a/chapter_12.xml b/chapter_12.xml index e69fd1e..f7f9540 100644 --- a/chapter_12.xml +++ b/chapter_12.xml @@ -289,6 +289,10 @@ you begin to feel comfortable. 5dw Remove five words (and store them in the copy buffer) + + yy + Yank (copy) a line (and store it in the copy buffer) + yw Yank (copy) a single word (and store it in the copy buffer) @@ -327,7 +331,11 @@ you begin to feel comfortable. :s'old'new'g - Replace all occurances of 'old' with 'new' + Replace all occurances of 'old' with 'new' (current line only) + + + :%s'old'new'g + Replace all occurances of 'old' with 'new' (all lines) /asdf -- cgit v1.2.3