fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@ -0,0 +1,36 @@
---
title: Macros
---
## Macros
Recording macros is a way to make some repetitive tasks automatically in VIM.
### Recording Macros
Macros use one of the VIM registers to be storage, each register is indentify by a letter `a` to `z`.
To start a Macro, in Normal Mode, press:
```vim
q<REGISTER LETTER>
```
Example: `qq` starts a macro in the register `q`, `qs` starts the macro in the register `s`
At this point you will see in VIM bottom line `recording @q`, this means everything you type now will be register in the macro.
To stop record the macro, press `<ESC>` to go back to NORMAL mode, and `q` to quit the macro.
To execute the macro you record, press `@` and the register `q`.
#### The complete process look like this:
- `qq` -> start record the macro in register `q`
- `...` -> the serie of commands you want to record
- `<ESC>q` -> go back to NORMAL mode and quit the macro record
- `@q` -> execute the macro, starting from the line you current are
- `@@` -> execute the macro again
### More Info
You can find more information about macros in the VIM Tips Wiki:
http://vim.wikia.com/wiki/Macros