2021-07-30 16:53:30 -04:00
|
|
|
### [Vim](http://www.vim.org/)
|
|
|
|
|
|
|
|
#### Install
|
|
|
|
|
2024-01-07 10:14:20 -05:00
|
|
|
These are the default instructions using Vim 8's `|packages|` feature. See sections below, if you use other plugin managers.
|
2021-07-30 16:53:30 -04:00
|
|
|
|
2023-07-15 06:43:27 -04:00
|
|
|
1. Create theme folder (in case you don't have it yet):
|
2021-07-30 16:53:30 -04:00
|
|
|
|
2024-01-07 10:14:20 -05:00
|
|
|
- `\*nix`:
|
2021-07-30 16:53:30 -04:00
|
|
|
|
2024-01-07 10:14:20 -05:00
|
|
|
```bash
|
2023-07-15 06:43:27 -04:00
|
|
|
# vim 8.2+
|
2021-07-30 16:53:30 -04:00
|
|
|
mkdir -p ~/.vim/pack/themes/start
|
2023-07-15 06:43:27 -04:00
|
|
|
# vim 8.0
|
|
|
|
mkdir -p ~/.vim/pack/themes/opt
|
2021-07-30 16:53:30 -04:00
|
|
|
```
|
|
|
|
|
2023-07-15 06:43:27 -04:00
|
|
|
- Windows: create directory `$HOME\vimfiles\pack\themes\start` or
|
|
|
|
`$HOME\vimfiles\pack\themes\opt`, according to your version.
|
2021-07-30 16:53:30 -04:00
|
|
|
|
|
|
|
2. Navigate to the folder above:
|
|
|
|
|
2024-01-07 10:14:20 -05:00
|
|
|
- `\*nix`:
|
2021-07-30 16:53:30 -04:00
|
|
|
|
2024-01-07 10:14:20 -05:00
|
|
|
```bash
|
2023-07-15 06:43:27 -04:00
|
|
|
# vim 8.2+
|
2021-07-30 16:53:30 -04:00
|
|
|
cd ~/.vim/pack/themes/start
|
2023-07-15 06:43:27 -04:00
|
|
|
# vim 8.0
|
|
|
|
cd ~/.vim/pack/themes/opt
|
2021-07-30 16:53:30 -04:00
|
|
|
```
|
|
|
|
|
2023-07-15 06:43:27 -04:00
|
|
|
- Windows: navigate to the directory you created earlier
|
2021-07-30 16:53:30 -04:00
|
|
|
|
|
|
|
3. Clone the repository using the "dracula" name:
|
|
|
|
|
2024-01-07 10:14:20 -05:00
|
|
|
```bash
|
2021-07-30 16:53:30 -04:00
|
|
|
git clone https://github.com/dracula/vim.git dracula
|
|
|
|
```
|
2024-01-07 10:14:20 -05:00
|
|
|
|
2021-07-30 16:53:30 -04:00
|
|
|
(Or use your favorite GUI client, or download the ZIP)
|
|
|
|
|
|
|
|
4. Edit your `vimrc` file with the following content:
|
|
|
|
|
|
|
|
```
|
2023-07-15 06:43:27 -04:00
|
|
|
if v:version < 802
|
|
|
|
packadd! dracula
|
|
|
|
endif
|
2021-07-30 16:53:30 -04:00
|
|
|
syntax enable
|
|
|
|
colorscheme dracula
|
|
|
|
```
|
|
|
|
|
|
|
|
The location of the `vimrc` varies between platforms:
|
2024-01-07 10:14:20 -05:00
|
|
|
|
|
|
|
- `\*nix`: `~/.vim/vimrc` or `~/.vimrc`
|
2021-07-30 16:53:30 -04:00
|
|
|
- Windows: `$HOME\vimfiles\vimrc` or `$HOME\_vimrc`
|
|
|
|
|
|
|
|
#### Install using other plugin managers
|
|
|
|
|
|
|
|
- If you [use vim + pathogen + submodules](http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/):
|
|
|
|
|
2024-01-07 10:14:20 -05:00
|
|
|
Navigate to your vim directory (`\*nix`: `~/.vim`; Windows: `$HOME\vimfiles`)
|
2021-07-30 16:53:30 -04:00
|
|
|
|
2024-01-07 10:14:20 -05:00
|
|
|
```bash
|
|
|
|
git submodule add git@github.com:dracula/vim.git bundle/dracula
|
|
|
|
```
|
2021-07-30 16:53:30 -04:00
|
|
|
|
|
|
|
Place `colorscheme dracula` after `execute pathogen#infect()`.
|
|
|
|
|
|
|
|
- If you [use vim + vundle](https://github.com/VundleVim/Vundle):
|
|
|
|
|
2021-10-11 05:30:43 -04:00
|
|
|
```vim
|
|
|
|
Plugin 'dracula/vim', { 'name': 'dracula' }
|
|
|
|
:PluginInstall
|
|
|
|
```
|
2021-07-30 16:53:30 -04:00
|
|
|
|
|
|
|
Place `colorscheme dracula` after `call vundle#end()`.
|
|
|
|
|
|
|
|
- If you [use vim-plug](https://github.com/junegunn/vim-plug) (\`as\` will install
|
2024-01-07 10:14:20 -05:00
|
|
|
the plugin in a directory called 'dracula' instead of just 'vim'):
|
2021-07-30 16:53:30 -04:00
|
|
|
|
2021-10-11 05:30:43 -04:00
|
|
|
```vim
|
|
|
|
Plug 'dracula/vim', { 'as': 'dracula' }
|
|
|
|
:PlugInstall
|
|
|
|
```
|
2021-07-30 16:53:30 -04:00
|
|
|
|
|
|
|
Place `colorscheme dracula` after `call plug#end()`.
|
|
|
|
|
|
|
|
- If you [use spacevim](https://spacevim.org), put the
|
2024-01-07 10:14:20 -05:00
|
|
|
following in `~/.SpaceVim.d/init.toml`:
|
2021-07-30 16:53:30 -04:00
|
|
|
|
|
|
|
```toml
|
|
|
|
[options]
|
|
|
|
colorscheme = "dracula"
|
|
|
|
colorscheme_bg = "dark"
|
|
|
|
[[custom_plugins]]
|
|
|
|
repo = "dracula/vim"
|
|
|
|
name = "dracula"
|
|
|
|
merged = false
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
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
|
2023-07-15 06:43:27 -04:00
|
|
|
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.
|