cloudsthere
V2EX  ›  问与答

vi 如何做到删除行而不纪录该行?

  •  
  •   cloudsthere · Jun 24, 2017 · 2013 views
    This topic created in 3244 days ago, the information mentioned may be changed or developed.

    vi,删除行一般用 dd,但这样会把这行放进缓存区(这个词我编的),就是下一次 yy 操作会把这行复制出来,这时 dd 的作用类似于 win 的 ctrl + x。

    如何可以做到单纯的删除而不覆盖缓存区的内容?

    sqsgalaxys
        1
    sqsgalaxys  
       Jun 24, 2017
    `"_dd`
    - [使用 Vim 寄存器 | Harttle Land]( http://harttle.com/2016/07/25/vim-registers.html "")
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3325 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:12 · PVG 21:12 · LAX 06:12 · JFK 09:12
    ♥ Do have faith in what you're doing.