cj323
V2EX  ›  Vim

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

  •  
  •   cj323 · Jun 13, 2025 · 4244 views
    This topic created in 345 days ago, the information mentioned may be changed or developed.

    normal 模式输出 10gs

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

    黑人?

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


    VIM 中文帮助: 总览及快速参考
    https://yianwillis.github.io/vimcdoc/doc/help.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   885 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 466ea39e · 50ms · UTC 22:14 · PVG 06:14 · LAX 15:14 · JFK 18:14
    ♥ Do have faith in what you're doing.