Skip to content

Commit

Permalink
68
Browse files Browse the repository at this point in the history
  • Loading branch information
cooldd100 committed Jun 16, 2013
1 parent f119517 commit 1d5d293
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Binary file added images/tip68_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tip68_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tip68_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions tip68.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#Tip68: Append Commands to a Macro
Sometimes we miss a vital step when we record a macro. There's no need to re-record the whole thing from scratch. Instead, we can tack extra commands onto the **end** of an existing macro.
![tip68_1](images/tip68_1.png)

We realize that we should have finished by pressing `j` to advance to the next line.

Before we fix it, let's inspect the contents of register a:
![tip68_2](images/tip68_2.png)

##qa
>Vim will record our keystrokes, saving them into register a by overwriting the existing contents of that register.
##qA
>Vim will record our keystrokes, **appending** them to the existing contents of register a.
![tip68_3](images/tip68_3.png)

**Discussion**
We can use this tech only to tack commands on at the **end** of a macro. If you want to add something at the beginning or somewhere in the middle of a macro, this technique would be no use to you!

#[Tip67](tip67.md) [Tip69](tip69.md)

0 comments on commit 1d5d293

Please sign in to comment.