指令集網路上非常多,這邊就來整理一下學習vim指令的先後順序吧!

首先是一些基礎必須的指令,這些指令沒有的話,恐怕連打字和存檔都辦不到XD

 

i                To enter insert mode (insert)

<Esc>       To go from insert mode to command mode

dd             cut current line (delete)

yy             copy current line (yank)

p               paste under current line

 

:w             save file

:q              quit

:wq            save file and quit

u                undo

<Ctrl>+R    redo

/                 search

n/N             search next/previous

 

 

數字的搭配意思是重複指令幾次的意思

ex:

3yy 就是複製三行

4p 就是貼上四遍

 

 

一開始寫程式這樣就勉強夠用了,大部分是在insert mode寫程式,debug的時候會用command mode來看,進行依些簡單的刪去一行、或是複製貼上...之類的指令。

當時修資結幾乎只有靠這幾個指令就打天下了XD

文章標籤
全站熱搜
創作者介紹
創作者 jimmy88099 的頭像
jimmy88099

jimmy88099的部落格

jimmy88099 發表在 痞客邦 留言(0) 人氣(460)