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

  • 相关阅读:
    个人网址收集
    使用 TListView 控件(2)
    C# 语法练习(14): 类[六] 事件
    如何在 "万一的 Delphi 博客" 回复自动格式化的着色代码?
    使用 TListView 控件(1)
    C# 语法练习(13): 类[五] 索引器
    使用 TListView 控件(4)
    C# 语法练习(11): 类[三] 构造函数、析构函数、base、this
    C# 语法练习(12): 类[四] 抽象类与抽象成员、密封类与密封成员
    使用 TListView 控件(3)
  • 原文地址:https://www.cnblogs.com/tinyork/p/3404047.html
Copyright © 2011-2022 走看看