2019-12-19 13:47:51 +00:00
|
|
|
### [Vim](http://www.vim.org/)
|
|
|
|
|
2020-05-01 21:09:11 +00:00
|
|
|
#### Install
|
|
|
|
|
|
|
|
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):
|
|
|
|
|
|
|
|
```
|
|
|
|
mkdir -p ~/.vim/pack/themes/start
|
|
|
|
```
|
|
|
|
|
2020-05-02 20:14:28 +00:00
|
|
|
If you use vim 8.0 (and not 8.2), you may need to use
|
|
|
|
`~/.vim/pack/themes/opt` instead.
|
|
|
|
|
2020-05-01 21:09:11 +00:00
|
|
|
2. Navigate to the folder above:
|
|
|
|
|
|
|
|
```
|
|
|
|
cd ~/.vim/pack/themes/start
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Clone the repository using the "dracula" name:
|
|
|
|
|
|
|
|
```
|
|
|
|
git clone https://github.com/dracula/vim.git dracula
|
|
|
|
```
|
|
|
|
|
|
|
|
4. Create configuration file (in case you don't have yet):
|
|
|
|
|
|
|
|
```
|
|
|
|
touch ~/.vimrc
|
|
|
|
```
|
|
|
|
|
|
|
|
5. Edit the `~/.vimrc` file with the following content:
|
|
|
|
|
|
|
|
```
|
|
|
|
packadd! dracula
|
|
|
|
syntax enable
|
|
|
|
colorscheme dracula
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Install using other plugin managers
|
2019-12-19 13:47:51 +00:00
|
|
|
|
|
|
|
If you [use vim + pathogen](http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/):
|
|
|
|
|
|
|
|
cd ~/.vim
|
|
|
|
git submodule add git@github.com:dracula/vim.git bundle/dracula
|
|
|
|
|
2020-05-01 21:09:11 +00:00
|
|
|
Place `colorscheme dracula` after `execute pathogen#infect()`.
|
|
|
|
|
|
|
|
If you [use vim + vundle](https://github.com/VundleVim/Vundle):
|
2019-12-19 13:47:51 +00:00
|
|
|
|
|
|
|
Plugin 'dracula/vim', { 'name': 'dracula' }
|
|
|
|
:PluginInstall
|
|
|
|
|
2020-05-01 21:09:11 +00:00
|
|
|
Place `colorscheme dracula` after `call vundle#end()`.
|
|
|
|
|
|
|
|
If you [use vim-plug](https://github.com/junegunn/vim-plug) (\`as\` will install
|
|
|
|
the plugin in a directory called 'dracula' instead of just 'vim'):
|
2019-12-19 13:47:51 +00:00
|
|
|
|
|
|
|
Plug 'dracula/vim', { 'as': 'dracula' }
|
|
|
|
:PlugInstall
|
|
|
|
|
2020-05-01 21:09:11 +00:00
|
|
|
Place `colorscheme dracula` after `call plug#end()`.
|
2019-12-19 13:47:51 +00:00
|
|
|
|
2020-05-19 21:46:37 +00:00
|
|
|
If you [use spacevim](https://spacevim.org), put the
|
|
|
|
following in `~/.SpaceVim.d/init.toml`:
|
|
|
|
|
|
|
|
```
|
|
|
|
[[custom_plugins]]
|
|
|
|
name = "dracula/vim"
|
|
|
|
[options]
|
|
|
|
colorscheme = "dracula"
|
|
|
|
colorscheme_bg = "dark
|
|
|
|
```
|
|
|
|
|
2020-05-01 21:09:11 +00:00
|
|
|
---
|
2019-12-19 13:47:51 +00:00
|
|
|
|
2020-05-01 21:09:11 +00:00
|
|
|
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.
|