From 6bc3959b7baa513e1ff51258c703c496f14d0bb6 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 18 Jan 2016 14:44:54 +0100 Subject: [PATCH] Macros: show ex2 without using a macro --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4e6a35e..9831a66 100644 --- a/README.md +++ b/README.md @@ -631,7 +631,7 @@ scripting](#vim-scripting) should be used instead.) - Start recording by typing `q` followed by the register, e.g. `q`. (The command-line will signify this via "recording @q".) -- Stop recording by by hitting `q` once again. +- Stop recording by hitting `q` once again. - Execute the macro via `[count]@q`. - Repeat the last used macro via `[count]@@`. @@ -646,7 +646,7 @@ q 10@q ``` -(The same could be done without registers: `oabc10.`) +(The same could be done without macros: `oabc10.`) **Example 2:** @@ -672,6 +672,12 @@ q @q ``` +(The same could be done without macros: `:%s/^/\=line('.') . '. '`) + +Mind that I also show how to achieve the same without using macros, but this +mostly works only for such simple examples. For more complex automation, macros +are the bomb! + Also see: [Quickly edit your macros](#quickly-edit-your-macros) Related help: