加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

vim – 如何在视觉块模式中选择整列?

发布时间:2020-12-15 20:01:57 所属栏目:安全 来源:网络整理
导读:说我有这个简单的文本在(g)Vim: a b ca b ca b ca b ca b c 更改为可视块选择模式后,如何选择整个第3列? Ctrl V G选择整个文本。我正在寻找一个键盘快捷方式来选择一个整列选择,如果有的话。 谢谢。 G移至最后一行,但如果设置了 startofline 或 compati
说我有这个简单的文本在(g)Vim:
a  b  c
a  b  c
a  b  c
a  b  c
a  b  c

更改为可视块选择模式后,如何选择整个第3列? Ctrl V G选择整个文本。我正在寻找一个键盘快捷方式来选择一个整列选择,如果有的话。

谢谢。

G移至最后一行,但如果设置了 startoflinecompatible(启用startofline)选项,则将光标移动到第一个非空白位置。如果你想保持同一列,在进入视觉块模式之前设置nosol,然后点击G.

从startofline的手动输入:

When “on” the commands listed below move the cursor to the first non-blank of the line. When off the cursor is kept in the same column (if possible). This applies to the commands: CTRL-D,CTRL-U,CTRL-B,CTRL-F,“G”,“H”,“M”,“L”,gg,and to the commands “d”,“<<” and “>>” with a linewise operator,with “%” with a count and to buffer changing commands (CTRL-^,:bnext,:bNext,etc.).

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读