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

优质内容筛选与推荐>>
1、asp.net请求流程
2、初探JavaScript魅力(四)
3、java面试-数据库篇(三)
4、【LeetCode题解】3_无重复字符的最长子串(Longest-Substring-Without-Repeating-Characters)
5、[收藏]希波克拉底誓言 Hippocratic Oath


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号