小编use*_*293的帖子

Vim:在可视块模式下快速选择矩形文本块

我正在寻找一种快速方式来选择可视块模式下的文本块.我处理这种性质的文件:

aaaa bbbb cccc
aaaa bbbb cccc
aaaa bbbb cccc

dddd Xeee ffff
dddd eeee ffff
dddd eeee ffff

gggg hhhh iiii
gggg hhhh iiii
gggg hhhh iiii
Run Code Online (Sandbox Code Playgroud)

我的目标是在可视块模式下选择中间块.我会做:

  1. 导航到角落(X所在的位置)
  2. 按Ctrl-V
  3. 'e'将选择范围扩展到块的末尾
  4. 'jj' or '2j' to extend the selection downward to the bottom of the block.

I'm looking for an alternative to (4) that, similar to 'e', would move to the last row of the block. In this simple example 'jj' is not too inconvenient, but sometimes these are large …

vim

7
推荐指数
2
解决办法
4285
查看次数

标签 统计

vim ×1