zoukankan      html  css  js  c++  java
  • [Practical.Vim(2012.9)].Drew.Neil.Tip21学习摘要

    Vim has three kinds of Visual mode. In character-wise Visual mode, we can select anything from a single character up to a range of characters within a line or spanning multiple lines. This is suitable for working at the level of individual words or phrases. If we want to operate on entire lines, we can use line-wise Visual mode instead. Finally, block-wise Visual mode allows us to work with columnar regions of the document

    vim提供了3中形式的Visual模式。


    第一种是字符模式,通过输入命令v进入该模式,能够从一个字符開始选择多个字符甚至多行字符。这样的模式适合处理字或者段落。
    另外一种是行模式。能够高速选择单行或者多行。
    第三种是块模式,能够选择文本中某一方形区域的字符。
    这里写图片描写叙述

    如图,我们能够输入命令小写v,进入字符模式。
    输入命令大写V,进入行模式。
    输入命令ctrl+v进入块模式。
    然后结合移动命令。选择所需的字符区域。
    这里写图片描写叙述

    v进入字符Visual模式,
    b为移动命令,移动到上一个word的首字符。在Visual模式下就是将选择范围添加到上一个字符,该样例中选择范围到“to”的t字符上。


    再次运行b命令。选择范围添加到here的首字符h上。
    在visual模式下一端是固定的,另外一端是可变的,我们能够通过命令o改变两端。

    在该样例中,运行o后,移动端由原来左边的h变为右边的h,运行e命令,选择范围向后添加到下一个word的末尾。

  • 相关阅读:
    cmake使用总结
    Fatal error RC1015: cannot open include file "xxxx.h" vs2008
    可重入函数(转)
    《左耳听风》-ARTS-打卡记录-第十二周
    异常声明
    QString与const char *相互转换
    Qt中使用子线程去关闭弹出框
    什么是反向代理
    【GOJ 3002】颜色
    【GOJ 2296】毛毛虫
  • 原文地址:https://www.cnblogs.com/brucemengbm/p/7367376.html
Copyright © 2011-2022 走看看