[Practical.Vim(2012.9)].Drew.Neil.Tip20学习摘要

Visual mode allows us to select a range of text and then operate upon it. However intuitive this might seem, Vim’s perspective on selecting text is different from other text editors。
Visual模式允许用户方便的选择一段文字然后进行操作。Vim下的文本选择方式和我们一般所遇到的文本编辑器不一样。

Many of the commands that you are familiar with from Normal mode work just the same in Visual mode. We can still use h , j , k, and l as cursor keys.
We can use f{char} to jump to a character on the current line and then repeat or reverse the jump with the ; and , commands, respectively. We can even use the search command (and n / N) to jump to pattern matches. Each time we move our cursor in Visual mode, we change the bounds of the selection

在 visual模式下,可以执行许多Normal模式下的命令。比如可以使用h,j,k和l来移动光标,可以使用 f{char}在当前行跳到字符位置,使用;,重复命令。我们还可以使用搜索命令,然后使用nN跳到模式匹配的项上。在Visual模式中通过移动光标可以改变文本选择的范围。

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。