【发布时间】:2012-02-07 22:54:55
【问题描述】:
假设您正在使用 vim 在可视模式下进行选择。你点击 v,然后用 l 开始向右移动。然后,假设您希望将选择扩展到左侧,而不更改右侧的点。也就是说,你对'>很满意,但想换'<。
如何进行交换,以使您就像从 '> 开始并选择左侧,更改 '<?
我有一个模糊的记忆,我以前见过这个,但很难用谷歌搜索。
【问题讨论】:
标签: vim
假设您正在使用 vim 在可视模式下进行选择。你点击 v,然后用 l 开始向右移动。然后,假设您希望将选择扩展到左侧,而不更改右侧的点。也就是说,你对'>很满意,但想换'<。
如何进行交换,以使您就像从 '> 开始并选择左侧,更改 '<?
我有一个模糊的记忆,我以前见过这个,但很难用谷歌搜索。
【问题讨论】:
标签: vim
糟糕,发布到 stackoverflow 可以让阅读 (F) 手册变得更加容易……
3. Changing the Visual area *visual-change*
*v_o*
o Go to Other end of highlighted text: The current
cursor position becomes the start of the highlighted
text and the cursor is moved to the other end of the
highlighted text. The highlighted area remains the
same.
【讨论】:
O 在块状(矩形)选择中,不去对角线::help v_O。
o
来自文档:
o Go to Other end of highlighted text: The current
cursor position becomes the start of the highlighted
text and the cursor is moved to the other end of the
highlighted text. The highlighted area remains the
same.
【讨论】: