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
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
轉載于:https://www.cnblogs.com/tinyork/p/3404047.html
總結
以上是生活随笔為你收集整理的vim tutor summary的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 编写DBUtil及测试
- 下一篇: PHP Yii框架中使用smarty模板