> For the complete documentation index, see [llms.txt](https://kanneg881.gitbook.io/workspace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kanneg881.gitbook.io/workspace/vim/an-zhuang.md).

# 安裝

## 到官網查看自己的作業系統下載安裝

<https://www.vim.org>

## 開啟方式

### 在終端下指令

`$ vim file`\
打開 file，沒有寫 file 則打開空白檔案

`$ vim file +N`\
打開 file 並移動到第 N 行

`$ vim -o file1 file2 ...`\
水平分割打開 file1 file2 等等

`$ vim -O file1 file2 ...`\
垂直分割打開 file1 file2 等等

`$ vim -p file1 file2 ...`\
標籤頁方式打開 file1 file2 等等

`$ vim -t {tag}`\
跳轉到 tag 標籤上

### MacVim

把 vim 改成 mvim

`$ mvim file`\
舉例使用者介面版打開 file\
沒有寫 file 則打開空白檔案

或者直接點擊打開
