Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,17 @@ Install

```vim
Plug 'luochen1990/rainbow'
let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle
```

#### install manually:

- first, execute the following commands (for windows users, use `~/vimfiles` instead of `~/.vim`)

```sh
git clone https://github.com/luochen1990/rainbow.git
cd rainbow
mkdir -p ~/.vim/plugin ~/.vim/autoload
cp plugin/* ~/.vim/plugin
cp autoload/* ~/.vim/autoload
```

- second, add the follow sentences to your `.vimrc` or `_vimrc` :

```vim
let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle
```
```sh
git clone --depth=1 https://github.com/luochen1990/rainbow.git ~/.vim/pack/rainbow
```

- third, restart your vim and enjoy coding.
```vim
packadd rainbow
```

Configure
---------
Expand Down
2 changes: 0 additions & 2 deletions autoload/rainbow.vim → opt/rainbow/autoload/rainbow.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
" Copyright 2013 LuoChen (luochen1990@gmail.com). Licensed under the Apache License 2.0.

if exists('s:loaded') | finish | endif | let s:loaded = 1

fun s:trim(s)
return substitute(a:s, '\v^\s*(.{-})\s*$', '\1', '')
endfun
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions opt/rainbow/plugin/rainbow_main.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
" Copyright 2013 LuoChen (luochen1990@gmail.com). Licensed under the Apache License 2.0.

command! RainbowToggle call rainbow_main#toggle()
command! RainbowToggleOn call rainbow_main#load()
command! RainbowToggleOff call rainbow_main#clear()

autocmd Syntax,ColorScheme * RainbowToggleOn
12 changes: 0 additions & 12 deletions plugin/rainbow_main.vim

This file was deleted.