视觉块插入/追加不起作用 [英] Visual block insert/append doesn't work

查看:30
本文介绍了视觉块插入/追加不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Ctrl-V 选择了一个文本块,但是当我输入 Shift-AShift-I,我的 vim 编辑器只在我开始可视块模式的位置进入插入模式.

I select a block of text using Ctrl-V, but when I then type Shift-A or Shift-I, my vim editor goes into insert mode on only the location where I began the visual block mode.

例如

Here
is 
text

我想要

#Her 
#is 
#text

但我明白了:

#Here
is 
text

推荐答案

Ctrl-V-> 选择块 -> 按 I-> 输入 #

Ctrl-V-> select the block -> press I -> type #

然后按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. 

这篇关于视觉块插入/追加不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆