Skip to content

Commit bb14cbe

Browse files
author
Robert Claypool
committed
Disable if 'compatible' is set. Add a global to detect if this plugin is loaded.
1 parent eb8baa5 commit bb14cbe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugin/rainbow_parentheses.vim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
"==============================================================================
55
" GetLatestVimScripts: 3772 1 :AutoInstall: rainbow_parentheses.zip
66

7+
" Exit quickly when:
8+
" - this plugin was already loaded (or disabled)
9+
" - when 'compatible' is set
10+
if exists("g:loaded_rainbow_parentheses") || &cp
11+
finish
12+
endif
13+
let g:loaded_rainbow_parentheses = 1
14+
715
com! RainbowParenthesesToggle cal rainbow_parentheses#toggle()
816
com! RainbowParenthesesToggleAll cal rainbow_parentheses#toggleall()
917
com! RainbowParenthesesActivate cal rainbow_parentheses#activate()

0 commit comments

Comments
 (0)