Skip to content

Latest commit

 

History

History
105 lines (75 loc) · 2.52 KB

INSTALL.md

File metadata and controls

105 lines (75 loc) · 2.52 KB

Vim-Rio

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 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 or $HOME\vimfiles\pack\themes\opt, according to your version.
  1. 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 the directory you created earlier
  1. Clone the repository using the "rio" name:
git clone https://github.com/raphamorim/vim-rio.git rio

(Or use your favorite GUI client, or download the ZIP)

  1. Edit your vimrc file with the following content:
if v:version < 802
    packadd! rio
endif
syntax enable
colorscheme rio

The location of the vimrc varies between platforms:

  • *nix: ~/.vim/vimrc or ~/.vimrc
  • Windows: $HOME\vimfiles\vimrc or $HOME\_vimrc

Install using other plugin managers

Navigate to your vim directory (*nix: ~/.vim; Windows: $HOME\vimfiles)

git submodule add [email protected]:raphamorim/vim-rio.git bundle/rio

Place colorscheme rio after execute pathogen#infect().

Plugin 'raphamorim/vim-rio', { 'name': 'rio' }
:PluginInstall

Place colorscheme rio after call vundle#end().

  • If you use vim-plug (`as` will install the plugin in a directory called 'rio' instead of just 'vim'):
Plug 'raphamorim/vim-rio', { 'as': 'rio' }
:PlugInstall

Place colorscheme rio after call plug#end().

  • If you use spacevim, put the following in ~/.SpaceVim.d/init.toml:
[options]
  colorscheme = "rio"
  colorscheme_bg = "dark"
[[custom_plugins]]
  repo = "raphamorim/vim-rio"
  name = "rio"
  merged = false

Note that rio 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 rio on the 'runtimepath' before loading it. For |packages|, versions 8.2 and later will autoload start packages correctly even in your vimrc.