bfti
V2EX  ›  Vim

vim 段落拷贝,为何造成对齐不一致的问题?如何避免?

  •  
  •   bfti · Mar 31, 2015 · 3693 views
    This topic created in 4073 days ago, the information mentioned may be changed or developed.

    操作录像:
    v 选中两行, d剪切, p复制, 怎么没有对齐了, 如何避免?

    bfti
        1
    bfti  
    OP
       Mar 31, 2015
    为何编辑后,缩进会乱掉呢?
    bfti
        2
    bfti  
    OP
       Mar 31, 2015
    @comicfans44 来帮我看下?
    @FrankFang128
    river1007
        3
    river1007  
       Mar 31, 2015
    因为p动作是把寄存器中的内容put到当前光标的后面啊,使用P试试,或者使用行模式V选文本
    bfti
        4
    bfti  
    OP
       Mar 31, 2015
    @river1007 用P好像可以解决问题, p和P有什么区别?
    river1007
        5
    river1007  
       Apr 1, 2015
    @bfti :help P
    ["x]p 放置文本 [从寄存器 x] 在光标之后 [count] 次。{Vi: 没有
    计数}

    *P*
    ["x]P 放置文本 [从寄存器 x] 在光标之前 [count] 次。{Vi: 没有
    计数}
    bfti
        6
    bfti  
    OP
       Apr 1, 2015
    @river1007 Put the text [from register x] after the cursor
    [count] times.

    register和内存有啥区别? 不是内存么?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1098 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 18:13 · PVG 02:13 · LAX 11:13 · JFK 14:13
    ♥ Do have faith in what you're doing.