mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 03:00:06 +08:00
17 lines
443 B
VimL
Vendored
17 lines
443 B
VimL
Vendored
" Copyright 2013 LuoChen (luochen1990@gmail.com). Licensed under the Apache License 2.0.
|
|
|
|
if exists('s:loaded')
|
|
finish
|
|
endif
|
|
|
|
let s:loaded = 1
|
|
|
|
command! RainbowToggle call rainbow_main#toggle()
|
|
command! RainbowToggleOn call rainbow_main#load()
|
|
command! RainbowToggleOff call rainbow_main#clear()
|
|
|
|
if (exists('g:rainbow_active') && g:rainbow_active)
|
|
auto syntax * call rainbow_main#load()
|
|
auto colorscheme * call rainbow_main#load()
|
|
endif
|