From e9909a5b312eb9565862026a1a74b6b404fb9300 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Mon, 19 Jun 2017 15:51:46 +0200 Subject: [PATCH] Fix "Replace bad with good in current line" definition % would mean the entire file. Also be more specific about where to % replace it. --- db/seeds/intro-lesson.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds/intro-lesson.rb b/db/seeds/intro-lesson.rb index 27f02df..e8bec8b 100644 --- a/db/seeds/intro-lesson.rb +++ b/db/seeds/intro-lesson.rb @@ -68,7 +68,7 @@ "ctrl+o" => "Jump to previous location (jump back)", "ctrl+i" => "Jump to next location (jump forward)", "%" => "Go to matching parentheses or brackets", - ":%s/bad/good" => "Replace bad with good in current line", + ":s/bad/good/g" => "Replace bad with good everywhere in current line", ":%s/hi/bye/g" => "Replace hi with bye in entire file", ":%s/x/y/gc" => "Replace x with y in entire file, prompt for changes", }