不知道为什么存在的 vim 快捷键

83 天前
 cj323

normal 模式输出 10gs

你会发现十秒内 vim 会卡住,打什么都没用,也不能退出。甚至 ctrl-z 都不行。

黑人?

2499 次点击
所在节点    Vim
4 条回复
rdfewxf
83 天前
g 是 goto
s 是 sleep
gs 是 暂停 1s
10gs 是重复 暂停 10s
如果输入 100gs 同理
rdfewxf
83 天前
用于脚本执行, 调试,等待响应等
xxgj
83 天前
```
:[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.
Ffffanwu
83 天前


VIM 中文帮助: 总览及快速参考
https://yianwillis.github.io/vimcdoc/doc/help.html

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1138271

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX