首页 > 系统服务 > 详细

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

时间:2015-06-07 15:49:48      阅读:256      评论:0      收藏:0      [点我收藏+]

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模式中通过移动光标可以改变文本选择的范围。

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

原文:http://blog.csdn.net/wdy_yx/article/details/46400849

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!