aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAJ ONeal <coolaj86@gmail.com>2020-04-17 14:23:19 -0600
committerGitHub <noreply@github.com>2020-04-17 14:23:19 -0600
commitce1bf297cb3569a59082286b0fcc2260b55868d2 (patch)
tree5756cd5eede711e2591732526e4d74859c5cd203 /README.md
parent6b1adeb54910aaac47d6ab9ecc6d54ffe2f68360 (diff)
downloadvim-prettier-ce1bf297cb3569a59082286b0fcc2260b55868d2.tar.xz
Add instructions for installing with vim 8+
No need for pathogen, plug, vundle, etc anymore
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.