Skip to content

Commit 7a67652

Browse files
authored
Merge pull request #8 from robert-claypool/master
Disable in Vim compatible mode. Add a global to detect if loaded.
2 parents a83ccb6 + bb14cbe commit 7a67652

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)