Home
Sign Up
Sign In
V2EX
›
Vim
vim 段落拷贝,为何造成对齐不一致的问题?如何避免?
bfti
·
Mar 31, 2015
· 4041 views
This topic created in 4234 days ago, the information mentioned may be changed or developed.
操作录像:
v 选中两行, d剪切, p复制, 怎么没有对齐了, 如何避免?
对齐
vim
拷贝
6 replies
1
bfti
OP
Mar 31, 2015
为何编辑后,缩进会乱掉呢?
2
bfti
OP
Mar 31, 2015
@
comicfans44
来帮我看下?
@
FrankFang128
3
river1007
Mar 31, 2015
因为p动作是把寄存器中的内容put到当前光标的后面啊,使用P试试,或者使用行模式V选文本
4
bfti
OP
Mar 31, 2015
@
river1007
用P好像可以解决问题, p和P有什么区别?
5
river1007
Apr 1, 2015
@
bfti
:help P
["x]p 放置文本 [从寄存器 x] 在光标之后 [count] 次。{Vi: 没有
计数}
*P*
["x]P 放置文本 [从寄存器 x] 在光标之前 [count] 次。{Vi: 没有
计数}
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
·
Privacy
·
Solana
·
2715 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 385ms ·
UTC 13:46
·
PVG 21:46
·
LAX 05:46
·
JFK 08:46
♥ Do have faith in what you're doing.
❯