4,460
edits
→Keyboard shortcuts: paste the saved macro bound to f |
→Instructions: Save a useful macro and retrieve for later use |
||
Line 20: | Line 20: | ||
= Instructions = | = Instructions = | ||
== Save a useful macro and retrieve for later use == | |||
In ~/.vimrc file, add as follows. Macro content can be retrieved by pressing <code>"xp</code> where x is the bound key. | |||
<source lang="vim"> | |||
let @q = 'macro contents' | |||
</source> | |||
== Adding comments to a block == | == Adding comments to a block == |