On Wed, Dec 25, 2013 at 8:24 PM, DwigtArmyOfChampions <dwightarmyofchampions@hotmail.com> 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?
Hi Dwight,
any time you do something repetitive that is too complex for the dot command.
It depends what you use Vim for, but if you are programming and your codebase is less than ideal, chances are you are going to have to do some repetitive editing tasks that can be automated. Macros are great for that.
I wrote about a simple example here : https://github.com/nicoder/blog/blob/master/2013/09/09/vim_macros.md
I haven't watched them in a while but these two vimcasts episodes can probably give a better idea :
hope that helps,
nico
--
--
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.
--
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