Hacker News new | ask | show | jobs
by q_revert 4431 days ago
> What's more, if I record a macro and run it, then realize after it that I want to do a small addition, I have to go through all the "setup" steps again - go back to the start, re-record, add the logical of finding the next block, and so on. I can't just visually see the situation and say "oh yeah, why don't I add this little tweak".

this is very doable, lets say you record a macro to 'a'

    1. q:
    2. let @a='
    3. ^r^ra to put in the current contents of the macro
    4. edit as you see fit

    --- you should now have something like ---
    let @a='contents of macro'
    
    5. ???
    6. profit