我使用Ctrl-V选择一个文本块,但是当我输入Shift-A或Shift-I时,我的vim编辑器仅在开始可视块模式的位置进入插入模式。
例如,
Here
is
text
我想要
#Her
#is
#text
但我得到:
#Here
is
text
最佳答案
Ctrl-V->选择块->按I->输入#
,然后按ESC
更多详情:
:h v_b_I
您可以看到:
Visual-block Insert *v_b_I*
With a blockwise selection, I{string}<ESC> will insert {string} at the start
of block on every line of the block, provided that the line extends into the block.
关于vim - 可视 block 插入/追加不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14925932/