Linux—vim命令选中多行进行操作(Mac版本)
2021-01-15 本文已影响0人
小胖学编程
1. 步骤
-
control+shift+v
——进入块模式。 - 移动上下键 ——选中多行。
-
shift+i
——进入编辑模式。 - 添加字符 。
- 点击
esc
键后选中的多行均添加了字符。 - 3步骤后点击
x
键——多行删除字符。
2. 相关截图
进入块模式,且选中多行。

进入编辑模式后,对第一行添加#
。

点击esc
键后多行均有#
。

control+shift+v
——进入块模式。shift+i
——进入编辑模式。esc
键后选中的多行均添加了字符。x
键——多行删除字符。进入块模式,且选中多行。
进入编辑模式后,对第一行添加#
。
点击esc
键后多行均有#
。