aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMitermayer Reis <mitermayer.reis@gmail.com>2020-04-19 06:38:59 +1000
committerGitHub <noreply@github.com>2020-04-19 06:38:59 +1000
commitde4c4fc5d879c8d82668e47384f80ff45c1bfb42 (patch)
tree5756cd5eede711e2591732526e4d74859c5cd203 /README.md
parent6b1adeb54910aaac47d6ab9ecc6d54ffe2f68360 (diff)
parentce1bf297cb3569a59082286b0fcc2260b55868d2 (diff)
downloadvim-prettier-de4c4fc5d879c8d82668e47384f80ff45c1bfb42.tar.xz
Merge pull request #236 from solderjs/patch-1
Add instructions for installing with vim 8+
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6e0460d..9a6a192 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,18 @@ have/support the "@format" pragma annotation in the header of the file.
### INSTALL
+To install with vim 8+ plugins, simply clone to your `~/.vim/pack/plugins/start` directory, and add `packloadall` to your `.vimrc` (if you haven't already).
+
+```bash
+mkdir -p ~/.vim/pack/plugins/start
+git clone https://github.com/prettier/vim-prettier ~/.vim/pack/plugins/start/vim-prettier
+```
+
+`.vimrc`:
+```vim
+packloadall
+```
+
Install with [vim-plug](https://github.com/junegunn/vim-plug), assumes node and
yarn|npm installed globally.