commit ef331a76f0d660a67504e1cd0d981c345db3607f (tree)
parent fa5f6d7c5be47bd32dcc69ccf980fc585575cc38
Author: Nils Martel <nilsmartel@yahoo.de>
Date: Wed, 30 Dec 2020 11:02:49 +0100
Include Installation Method
Plugin Managers offer an easy solution for installation for many users.
This works without any changes to the repository, it's even the setup I use myself
Diffstat:
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
@@ -5,13 +5,25 @@ File detection and syntax highlighting for the
## Installation
-If using **Vim**:
+### If using [**vim-plug**](https://github.com/junegunn/vim-plug) (for Vim or Neovim)
+ * Open vim config
+ * Write `Plug 'ziglang/zig.vim'` inside the `plug` command:
+ ```vim
+ call plug#begin('~/.vim/plugged')
+ Plug 'ziglang/zig.vim'
+ call plug#end()
+ ```
+
+ * Restart vim / reload vim config
+ * type `:PlugInstall`
+
+### If using **Vim**:
* Use Vim 8 or newer
* `mkdir -p ~/.vim/pack/plugins/start/`
* `cd ~/.vim/pack/plugins/start/`
* `git clone https://github.com/ziglang/zig.vim`
-If using **Neovim**:
+### If using **Neovim**:
* `mkdir -p ~/.local/share/nvim/site/pack/plugins/start/`
* `cd ~/.local/share/nvim/site/pack/plugins/start/`
* `git clone https://github.com/ziglang/zig.vim`