vi雖然是 Linux 主流,是時代是會進步,目前流行都是 nano ,主要原因是他支援彩色標示
(如果你用過 PE2 你就電腦老用戶)
檔案處理
Ctrl+S | 儲存檔案 |
Ctrl+O | 另存新檔案 |
Ctrl+R | 插入一個檔案到目前位置 |
Ctrl+X | 關閉檔案離開目前 nano |
編輯常用指令
Editing
Ctrl+K | 剪下整列或選取範圍到 cutbuffer |
Alt+6 | 拷貝整列範圍到 cutbuffer |
Ctrl+U | 貼上cutbuffer內容 |
Ctrl+] | Complete current word |
Alt+3 | Comment/uncomment line/region |
Alt+U | Undo last action |
Alt+E | Redo last undone actio |
Deletion
Ctrl+H | Delete character before cursor |
Ctrl+D | Delete character under cursor |
Alt+Bsp | Delete word to the left |
Ctrl+Del | Delete word to the right |
Alt+Del | 刪除整行 |
Search and replace
Ctrl+B | Start backward search |
Ctrl+F | Start forward search |
Alt+B | Find next occurrence backward |
Alt+F | Find next occurrence forward |
Alt+R | Start a replacing sessio |
取自
https://www.nano-editor.org/dist/latest/cheatsheet.html