From 3e52a0682a53dd7c2c53133d45948f5a49c5fd9a Mon Sep 17 00:00:00 2001 From: "D. Ben Knoble" Date: Mon, 19 Jun 2023 16:53:16 -0400 Subject: [PATCH] clarify version differences in INSTALL.md (#310) Close https://github.com/dracula/vim/issues/309 --- INSTALL.md | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 0868adc..7fc0247 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -5,28 +5,32 @@ These are the default instructions using Vim 8's `|packages|` feature. See 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: ``` +# vim 8.2+ mkdir -p ~/.vim/pack/themes/start +# vim 8.0 +mkdir -p ~/.vim/pack/themes/opt ``` -- Windows: create directory `$HOME\vimfiles\pack\themes\start` - -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. +- Windows: create directory `$HOME\vimfiles\pack\themes\start` or + `$HOME\vimfiles\pack\themes\opt`, according to your version. 2. Navigate to the folder above: - \*nix: ``` +# vim 8.2+ 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: @@ -38,7 +42,9 @@ git clone https://github.com/dracula/vim.git dracula 4. Edit your `vimrc` file with the following content: ``` -packadd! dracula +if v:version < 802 + packadd! dracula +endif syntax enable 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 introduced autoload functionality for part of the plugin, which doesn't work 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.