V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cloudsthere
V2EX  ›  问与答

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

  •  
  •   cloudsthere · Jun 24, 2017 · 1977 views
    This topic created in 3231 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   ·   978 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 19:42 · PVG 03:42 · LAX 12:42 · JFK 15:42
    ♥ Do have faith in what you're doing.