Skip to content

Commit

Permalink
Merge pull request #6 from Diablo-D3/master
Browse files Browse the repository at this point in the history
Fixed weirdness during modeline filetype usage
  • Loading branch information
kien committed Feb 10, 2012
2 parents fa3563d + 3261c98 commit 45e270d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions autoload/rainbow_parentheses.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions plugin/rainbow_parentheses.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 45e270d

Please sign in to comment.