不了解你的需求,如果是翻外部命令的话,可以用这个工具:
https://github.com/flw-cn/ap
如果指定要翻的是 buffer 的话,那么你应该用 timer:
:func MyHandler(timer)
: exec "norm! \<C-F>"
:endfunc
:let timer = timer_start(500, 'MyHandler', {'repeat': -1})
这样就可以了。
【 在 woshiydp 的大作中提到: 】
: 我写了一个小函数:
: function Autopd()
: let num = 1
: while number < 100
: exec "norm! \<C-F>"
: sleep 500m
: let num+=1
: endfunction
: 程序顿了一下,突然就执行完,从头翻到底了,没有半秒半地翻。有什么好办法实现吗?
: #发自zSMTH@VOG-AL10
--
FROM 163.125.197.*