On 2013-12-25 11:24, DwigtArmyOfChampions wrote:
> So many tutorials tell me how to record a macro and how to run it.
> But nowhere does it say what I'm supposed to do with them. I don't
> understand what kinds of commands usually get recorded in macros?
> What are some examples of really good, efficient, time-saving
> macros?
Combining the two answers you've received, I find myself using macros
in the sweet-spot when the following conditions apply:
1) that it's something that's too complex for the dot/period repeat
command or a fairly straightforward :g command (though the power of
the :g command usually gives me what I need in 95% of the cases)
2) it's something I need to do repeatedly in the current document (or
set of documents)
3) it's something that I don't ever expect to need to do again (in
which case I am more apt to write a mapping and save it somewhere).
So I treat macros as somewhat throw-away, much like I use perl :-)
Alternatively, macros are often the perfect way to hack a few
characters off when playing vimgolf.com :-)
-tim
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment