微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

我有这个简单的文本在(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.).

原文地址:https://www.jb51.cc/vim/388921.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐