Permalink
Browse files

Added ToggleAll() to force on everything during modeline filetype

  • Loading branch information...
1 parent fa3563d commit 3261c9858023c30fc698845d7ee5544bc4935323 @Diablo-D3 Diablo-D3 committed Feb 9, 2012
Showing with 14 additions and 0 deletions.
  1. +13 −0 autoload/rainbow_parentheses.vim
  2. +1 −0 plugin/rainbow_parentheses.vim
@@ -72,6 +72,19 @@ func! rainbow_parentheses#toggle()
endif
endfunc
+func! rainbow_parentheses#toggleall()
+ if !exists('s:active')
+ cal rainbow_parentheses#load(0)
+ cal rainbow_parentheses#load(1)
+ cal rainbow_parentheses#load(2)
+ endif
+ if exists('s:active') && s:active
+ cal rainbow_parentheses#clear()
+ else
+ cal rainbow_parentheses#activate()
+ endif
+endfunc
+
func! s:cluster()
let levels = ''
for each in range(1, s:max)
@@ -5,6 +5,7 @@
" GetLatestVimScripts: 3772 1 :AutoInstall: rainbow_parentheses.zip
com! RainbowParenthesesToggle cal rainbow_parentheses#toggle()
+com! RainbowParenthesesToggleAll cal rainbow_parentheses#toggleall()
com! RainbowParenthesesLoadRound cal rainbow_parentheses#load(0)
com! RainbowParenthesesLoadSquare cal rainbow_parentheses#load(1)
com! RainbowParenthesesLoadBraces cal rainbow_parentheses#load(2)

0 comments on commit 3261c98

Please sign in to comment.