*: add traditional Chinese translation (#10835)
This commit is contained in:
37
pages.zh_TW/common/vim.md
Normal file
37
pages.zh_TW/common/vim.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# vim
|
||||
|
||||
> Vim (Vi IMproved), 是一個命令列文字編輯器,為不同類型的文字操作提供了多種模式。
|
||||
> 在正常模式下按下 `i` 進入插入模式。按 `<Esc>` 返回正常模式,可以使用 Vim 指令。
|
||||
> 更多資訊:<https://www.vim.org>.
|
||||
|
||||
- 打開檔案:
|
||||
|
||||
`vim {{檔案/完整/路徑}}`
|
||||
|
||||
- 使用指定行數打開檔案:
|
||||
|
||||
`vim +{{指定行數}} {{檔案/完整/路徑}}`
|
||||
|
||||
- 查看 Vim 指令手冊:
|
||||
|
||||
`:help<Enter>`
|
||||
|
||||
- 儲存並且離開:
|
||||
|
||||
`:wq<Enter>`
|
||||
|
||||
- 進入正常模式並且復原上次操作:
|
||||
|
||||
`<ESC>u`
|
||||
|
||||
- 搜尋特定字詞:
|
||||
|
||||
`/{{欲搜尋字詞}}<Enter>`
|
||||
|
||||
- 使用正規表示式(RE)尋找並取代整份文件:
|
||||
|
||||
`:%s/{{正規表示式}}/{{取代文字}}/g<Enter>`
|
||||
|
||||
- 顯示行數:
|
||||
|
||||
`:set nu<Enter>`
|
Reference in New Issue
Block a user