✨〰️ ZI 〰️✨ Vim Syntax
Tags: zi, shell, zsh, devops
Published: 2022-06-27 18:36:56

---
title: ✨〰️ ZI 〰️✨ Vim Syntax
published: true
date: 2022-04-28 08:52:53 UTC
tags: zi,shell,zsh,devops
canonical_url: https://community.ops.io/zsh/-zi-vim-syntax-14fj
---

[![ZI Swiss army knife](https://community.ops.io/images/PxOXrZebj5AbDai_gYqO10eqFupGiKD-zKHMbp4jE4c/w:880/mb:500000/ar:1/aHR0cHM6Ly9jZG4t/aW1hZ2VzLTEubWVk/aXVtLmNvbS9tYXgv/MzIwLzAqRjFzU0tX/eWE4YXhmM0tJWS5w/bmc)](https://community.ops.io/images/PxOXrZebj5AbDai_gYqO10eqFupGiKD-zKHMbp4jE4c/w:880/mb:500000/ar:1/aHR0cHM6Ly9jZG4t/aW1hZ2VzLTEubWVk/aXVtLmNvbS9tYXgv/MzIwLzAqRjFzU0tX/eWE4YXhmM0tJWS5w/bmc)

### [❮ ZI ❯](https://github.com/z-shell/zi) 🧙‍‍♀️ A Swiss Army Knife for Zsh.

Designed to glue everything together. 🔗

[https://z.digitalclouds.dev](https://z.digitalclouds.dev) | [GitHub](https://github.com/z-shell/) | [Discussions](https://github.com/orgs/z-shell/discussions/) | [Localize](https://crowdin.digitalclouds.dev)

A Vim syntax definition for [ZI](https://github.com/z-shell/zi) commands in any file of type `zsh`.

### 📥 Installation

Load as a Vim plugin. E.g. when using [vim-plug](https://github.com/junegunn/vim-plug), add to `~/.vimrc`:

```
Plug 'z-shell/zi-vim-syntax'

```

and then issue the `:PlugInstall` command.

### 📕 Manual Installation

To install the syntax copy the file `after/syntax/zsh.vim` under the path `~/.vim/syntax/after`.

### ✍️ Examples

✴️ The default theme:

[![plastic](https://community.ops.io/images/vd5li16DEj1MTCaZDI7UdxwDW3rjZ0ld1RyYlVOEmq4/w:880/mb:500000/ar:1/aHR0cHM6Ly9yZXMu/Y2xvdWRpbmFyeS5j/b20vcHJhY3RpY2Fs/ZGV2L2ltYWdlL2Zl/dGNoL3MtLUlSSUNT/VkdjLS0vY19saW1p/dCUyQ2ZfYXV0byUy/Q2ZsX3Byb2dyZXNz/aXZlJTJDcV9hdXRv/JTJDd184ODAvaHR0/cHM6Ly9naXRodWIu/Y29tL3otc2hlbGwv/emktdmltLXN5bnRh/eC9yYXcvbWFpbi9k/b2NzL2ltYWdlcy9k/ZWZhdWx0LnBuZw)](https://res.cloudinary.com/practicaldev/image/fetch/s--IRICSVGc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/z-shell/zi-vim-syntax/raw/main/docs/images/default.png)

✴️ The theme `flrnprz/plastic.vim`:

[![plastic](https://community.ops.io/images/YEfbRgRgUjPbYWL6M95qJ2bxa-3sBjw4LUss2vMwyqk/w:880/mb:500000/ar:1/aHR0cHM6Ly9yZXMu/Y2xvdWRpbmFyeS5j/b20vcHJhY3RpY2Fs/ZGV2L2ltYWdlL2Zl/dGNoL3MtLTJ3MFRl/ZUR4LS0vY19saW1p/dCUyQ2ZfYXV0byUy/Q2ZsX3Byb2dyZXNz/aXZlJTJDcV9hdXRv/JTJDd184ODAvaHR0/cHM6Ly9naXRodWIu/Y29tL3otc2hlbGwv/emktdmltLXN5bnRh/eC9yYXcvbWFpbi9k/b2NzL2ltYWdlcy9w/bGFzdGljLnBuZw)](https://res.cloudinary.com/practicaldev/image/fetch/s--2w0TeeDx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/z-shell/zi-vim-syntax/raw/main/docs/images/plastic.png)

✴️ The theme `slate`:

[![slate](https://community.ops.io/images/9NJiiJWInB53siC7ry36NxIHq56iKRDREO9onm6vC6w/w:880/mb:500000/ar:1/aHR0cHM6Ly9yZXMu/Y2xvdWRpbmFyeS5j/b20vcHJhY3RpY2Fs/ZGV2L2ltYWdlL2Zl/dGNoL3MtLXFxRDd0/eGZjLS0vY19saW1p/dCUyQ2ZfYXV0byUy/Q2ZsX3Byb2dyZXNz/aXZlJTJDcV9hdXRv/JTJDd184ODAvaHR0/cHM6Ly9naXRodWIu/Y29tL3otc2hlbGwv/emktdmltLXN5bnRh/eC9yYXcvbWFpbi9k/b2NzL2ltYWdlcy9z/bGF0ZS5wbmc)](https://res.cloudinary.com/practicaldev/image/fetch/s--qqD7txfc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/z-shell/zi-vim-syntax/raw/main/docs/images/slate.png)

✴️ The theme `murphy`:

[![plastic](https://community.ops.io/images/LwJ14a3GBXeERUFzDsN8x5ABRgq8fi1Nfy5_Qy4fOZI/w:880/mb:500000/ar:1/aHR0cHM6Ly9yZXMu/Y2xvdWRpbmFyeS5j/b20vcHJhY3RpY2Fs/ZGV2L2ltYWdlL2Zl/dGNoL3MtLWt5VnBL/MUE2LS0vY19saW1p/dCUyQ2ZfYXV0byUy/Q2ZsX3Byb2dyZXNz/aXZlJTJDcV9hdXRv/JTJDd184ODAvaHR0/cHM6Ly9naXRodWIu/Y29tL3otc2hlbGwv/emktdmltLXN5bnRh/eC9yYXcvbWFpbi9k/b2NzL2ltYWdlcy9t/dXJwaHkucG5n)](https://res.cloudinary.com/practicaldev/image/fetch/s--kyVpK1A6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/z-shell/zi-vim-syntax/raw/main/docs/images/murphy.png)

✴️ The theme `lucasprag/simpleblack`:

[![plastic](https://community.ops.io/images/ms5OLq46wuSHGHSmhmjwaSlXYJv9kg3lP-BeplgYej8/w:880/mb:500000/ar:1/aHR0cHM6Ly9yZXMu/Y2xvdWRpbmFyeS5j/b20vcHJhY3RpY2Fs/ZGV2L2ltYWdlL2Zl/dGNoL3MtLTdJQjFZ/MEpLLS0vY19saW1p/dCUyQ2ZfYXV0byUy/Q2ZsX3Byb2dyZXNz/aXZlJTJDcV9hdXRv/JTJDd184ODAvaHR0/cHM6Ly9naXRodWIu/Y29tL3otc2hlbGwv/emktdmltLXN5bnRh/eC9yYXcvbWFpbi9k/b2NzL2ltYWdlcy9z/aW1wbGVibGFjay5w/bmc)](https://res.cloudinary.com/practicaldev/image/fetch/s--7IB1Y0JK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/z-shell/zi-vim-syntax/raw/main/docs/images/simpleblack.png)