假设您正在使用vim的可视模式进行选择。您按下v,然后使用l向右移动。然后,假设您希望将选择向左扩展,而不改变右边的点。也就是说,您对
如何交换以使其好像您从
我模糊地记得以前见过这个问题,但很难在谷歌上搜索到。
'>
感到满意,但想更改'<
。如何交换以使其好像您从
'>
开始选择向左移动,并更改'<
?我模糊地记得以前见过这个问题,但很难在谷歌上搜索到。
'>
感到满意,但想更改'<
。'>
开始选择向左移动,并更改'<
?哎呀,发布到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
根据文档:
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
。 - Benoit