clarify version differences in INSTALL.md (#310)

Close https://github.com/dracula/vim/issues/309
This commit is contained in:
D. Ben Knoble 2023-06-19 16:53:16 -04:00 committed by GitHub
parent 0bf17b30c9
commit 3e52a0682a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,28 +5,32 @@
These are the default instructions using Vim 8's `|packages|` feature. See These are the default instructions using Vim 8's `|packages|` feature. See
sections below, if you use other plugin managers. sections below, if you use other plugin managers.
1. Create theme folder (in case you don't have yet): 1. Create theme folder (in case you don't have it yet):
- \*nix: - \*nix:
``` ```
# vim 8.2+
mkdir -p ~/.vim/pack/themes/start mkdir -p ~/.vim/pack/themes/start
# vim 8.0
mkdir -p ~/.vim/pack/themes/opt
``` ```
- Windows: create directory `$HOME\vimfiles\pack\themes\start` - Windows: create directory `$HOME\vimfiles\pack\themes\start` or
`$HOME\vimfiles\pack\themes\opt`, according to your version.
If you use vim 8.0 (and not 8.2), you may need to use `~/.vim/pack/themes/opt`
or `$HOME\vimfiles\pack\themes\opt` instead.
2. Navigate to the folder above: 2. Navigate to the folder above:
- \*nix: - \*nix:
``` ```
# vim 8.2+
cd ~/.vim/pack/themes/start cd ~/.vim/pack/themes/start
# vim 8.0
cd ~/.vim/pack/themes/opt
``` ```
- Windows: navigate to `$HOME\vimfiles\pack\themes\start` - Windows: navigate to the directory you created earlier
3. Clone the repository using the "dracula" name: 3. Clone the repository using the "dracula" name:
@ -38,7 +42,9 @@ git clone https://github.com/dracula/vim.git dracula
4. Edit your `vimrc` file with the following content: 4. Edit your `vimrc` file with the following content:
``` ```
if v:version < 802
packadd! dracula packadd! dracula
endif
syntax enable syntax enable
colorscheme dracula colorscheme dracula
``` ```
@ -94,4 +100,6 @@ following in `~/.SpaceVim.d/init.toml`:
Note that dracula must be in your `'runtimepath'` to load properly: Version 2.0 Note that dracula must be in your `'runtimepath'` to load properly: Version 2.0
introduced autoload functionality for part of the plugin, which doesn't work introduced autoload functionality for part of the plugin, which doesn't work
without `'runtimepath'` properly set. Consult your plugin-managers documentation without `'runtimepath'` properly set. Consult your plugin-managers documentation
to make sure you put dracula on the `'runtimepath'` before loading it. to make sure you put dracula on the `'runtimepath'` before loading it. For
`|packages|`, versions 8.2 and later will autoload `start` packages
correctly even in your vimrc.