search

Home  >  Q&A  >  body text

When vim records a macro, can it record the time?

When vim records a macro, can it record the time?
That is, I want to add the time factor, for example, I want to play the macro once every 1 second

天蓬老师天蓬老师2776 days ago739

reply all(3)I'll reply

  • 某草草

    某草草2017-05-16 16:43:01

    Let me give you a clever answer,
    If the subject's pause time is not many times, there is a method that can be used:
    qa starts recording
    xxxxx A series of operations need to be recorded and stopped for 1 second. What should I do? See below
    :silent sleep 1 You should understand after seeing this. If it doesn’t work, test this command. After typing, remember to press Enter twice to return to vim
    xxxx A series of next operations
    q End recording macro

    10@a Well, did you see the results you wanted?

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 16:43:01

    You need to use software like "Key Wizard" to implement this. Vim's "record" is just a simple "record"

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-16 16:43:01

    It seems that this function is not available. I tried it and even though the operation paused for a while, VIM finally stopped the pause time. Let’s use other tools

    reply
    0
  • Cancelreply