[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模式下,可以執(zhí)行許多Normal模式下的命令。比如可以使用h,j,k和l來移動光標,可以使用 f{char}在當前行跳到字符位置,使用;或,重復命令。我們還可以使用搜索命令,然后使用n或N跳到模式匹配的項上。在Visual模式中通過移動光標可以改變文本選擇的范圍。
總結(jié)
以上是生活随笔為你收集整理的[Practical.Vim(2012.9)].Drew.Neil.Tip20学习摘要的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【ubuntu】xmm2(音频播放器)安
- 下一篇: 购买本本全攻略