File: rainbow_main.vim

package info (click to toggle)
vim-rainbow 3.3.1.88.g76ca1a2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 212 kB
  • sloc: sh: 43; ruby: 13; ansic: 9; perl: 8; php: 8; xml: 5; javascript: 3; makefile: 2; haskell: 2
file content (12 lines) | stat: -rw-r--r-- 506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
" Copyright 2013 LuoChen (luochen1990@gmail.com). Licensed under the Apache License 2.0.

if exists('s:loaded') || !(exists('g:rainbow_active') || exists('g:rainbow_conf')) | 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