- 将光标放在要成为块一部分的左上角字符上.
- 使用 ctrl+v
进入块选择模式-
使用 $ 选择到行尾(这是您缺少的步骤;如果您使用 移动到第一行的末尾$ 然后选择将扩展到后续行的末尾)
- 使用 3j
向下移动 3 行
- Put your cursor on the top-left character you want to be part of the block.
- Enter block selection mode with ctrl+v
-
Select to the end of the line with $ (this is the step you're missing; if you move to the end of the first line using $ then the selection will extend to the end of subsequent lines as well)
- Move down 3 lines with 3j
Vim 文档中关于可视模式的部分有更多信息,您可以在线阅读,或者在 Vim 中输入 :help v_$
.
There's more information in the Vim documentation's section on visual mode which you can read online, or just type :help v_$
in Vim.