V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cj323
V2EX  ›  Vim

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

  •  
  •   cj323 · 51 天前 · 2293 次点击
    这是一个创建于 51 天前的主题,其中的信息可能已经有所发展或是发生改变。

    normal 模式输出 10gs

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

    黑人?

    4 条回复    2025-06-13 13:12:57 +08:00
    rdfewxf
        1
    rdfewxf  
       51 天前
    g 是 goto
    s 是 sleep
    gs 是 暂停 1s
    10gs 是重复 暂停 10s
    如果输入 100gs 同理
    rdfewxf
        2
    rdfewxf  
       51 天前
    用于脚本执行, 调试,等待响应等
    xxgj
        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.
    Ffffanwu
        4
    Ffffanwu  
       51 天前   ❤️ 2


    VIM 中文帮助: 总览及快速参考
    https://yianwillis.github.io/vimcdoc/doc/help.html
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2635 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 09:44 · PVG 17:44 · LAX 02:44 · JFK 05:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.