zoukankan      html  css  js  c++  java
  • vim tutor summary

    在终端输入vim tutor是最好的。。以下是我学习里边的课程的小总结:

    经典的不多说:

    q!  退出      wq 退出并保存

    <Esc>   i  A 编辑模式等的转换

    (非编辑模式。编辑模式的话不就输入字符了~~囧~~)

    移动光标(move)

      上下左右:

            k

      h          l

            j

      w:光标跳到下一个单词开头          to the start of the next word 

      2w:跳到第二个单词(3w..)       move the cursor to the start of the second words forward

      e:光标跳到下一个单词末尾           to the end of the next word

      2e  3e  9e :(同上上....)

      0:光标跳到行首                        move the cursor to the start of the line     

      $:光标跳到本行末尾                   to the end of the line

    删除(delete)

      x:删除光标上的一个字符             delete a charact..

      wd:删除光标所在的单词              delete a word.

      d$:删除本行光标右边的所有字符   delete to the end of the line

      2wd:删除两个单词                     按不快的话就变成2w  2d了,~~囧~~

      dd:删除一行                             delete a whole line

      2dd 3dd 4dd:删除两行,三行,四行~~

    撤销(undo)

      u:撤销                                        undo

      U:撤销对本行的操作                       undo all the chages in a line

      <Ctrl>+ u:取消撤销,返回原来的      undo the undo    

    p(copy)

      先删除(行,字符,单词)-->p 

    rx:

    c$:

    %:跳到任意的{[(<

    /:  /+你要找的东西  光标会停在那里,有缺陷

    gg:文件开头

    G:文件末尾  

    。。。。。。。。。。。。。。。。

    lesson 7

    more detail please come to vim tutor

  • 相关阅读:
    mycat的基本介绍及安装
    mycat的安装及使用
    java 基本语法(十三) 数组(六)数组的常见异常
    java 面向对象(一):类与对象
    java 面向对象(二):JVM内存结构
    java 面向对象(三):类结构 属性
    java 面向对象(五):类结构 方法(二) 关键字:return;方法的重载;可变个数形参的方法
    Salesforce数据安全简介
    Apex计划作业框架的实现
    异步 Apex 类
  • 原文地址:https://www.cnblogs.com/tinyork/p/3404047.html
Copyright © 2011-2022 走看看