VIM: Difference between revisions

Jump to navigation Jump to search
234 bytes added ,  4 February 2021
→‎Instructions: Save a useful macro and retrieve for later use
→‎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 ==

Navigation menu