normal 模式输出 10gs
你会发现十秒内 vim 会卡住,打什么都没用,也不能退出。甚至 ctrl-z 都不行。
黑人?
1
rdfewxf 51 天前
g 是 goto
s 是 sleep gs 是 暂停 1s 10gs 是重复 暂停 10s 如果输入 100gs 同理 |
2
rdfewxf 51 天前
用于脚本执行, 调试,等待响应等
|
3
xxgj 51 天前
```
:[N]sl[eep] [N][m] Do nothing for [N] seconds, or [N] milliseconds if [m] was given. "gs" always uses seconds. Default is one second. > :sleep "sleep for one second :5sleep "sleep for five seconds :sleep 100m "sleep for 100 milliseconds 10gs "sleep for ten seconds < Can be interrupted with CTRL-C. "gs" stands for "goto sleep". While sleeping the cursor is positioned in the text, if at a visible position. Queued messages are processed during the sleep. ``` > Can be interrupted with CTRL-C. |
4
Ffffanwu 51 天前 ![]() |